I realise that sending email with php is turned "off" on t35 because of laws. But could u make some kind of mail function so that u can send an email only to ur login address... For example, I want a form that sends me an email. Mailto is really annoying, so I use php. the mail function is disabled and i can't send an email... But there is this great function that doesn't allow me to specify the recipient but still send emails (the recipient would be the address I used for signing up and verification)
say my email is
blah@hotmail.comthe new functio would be:
sendmail(body, title/subject)
{
mail(title/subject, body, <the email i used to sign up as recip>);
} (this is just what it might be like

)
Thanks
I was tryinjg to use this code:
<?php
ini_set ("SMTP","mail.cardiffhigh.cardiff.sch.uk");
ini_set ("sendmail_from","
headmaster@cardiffhigh.cardiff.sch.uk");
$email= '
owen.campbell-moore@cardiffhigh.cardiff.sch.uk';
mail ($email, 'You Have Mail!', hello);
echo "email sent to {$email}";
?>
but it wasn't working. I just want people to be able to give me comments and for them to be mailed to me. Ill have to test your idea. Anyway, why would you want to send an email like that? I ended up getting around it with this script (feel free to use):
<?php
$filename = "logfile.txt";
if (isset($_GET["name"])){
if (!$handle = fopen($filename, 'a')) {
die ("Error while opening.");
} else {
if (fwrite($handle, "\r\n" . $_GET["name"]."\r\n" . $_GET["comments"]) === FALSE){
die("Error while writing.");
}
}
echo "Added!";
fclose($handle);
} else {
echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"GET\">\r\n";
echo "<input type=\"text\" name=\"name\" size=\"24\" />\r\n";
echo "<input type=\"text\" name=\"comments\" size=\"24\" />\r\n";
echo "<input type=\"submit\" value=\"Send!\" />\r\n";
echo "</form>\r\n";
}
?>
