Hi,
I found a emailer-script on the internet, and modified it so it looked like this:
[code=php]<?
foreach ($_POST as $key => $value) {
$Body = $Body.”$key = $value n “;
}
ini_set (“SMTP”,”my SMPT address”);
mail(“[email protected]”, $_POST[‘Subject’], $Body, “From: Form Responder”);
echo “<meta http-equiv=’refresh’ content=’60;URL=thanks.php>”
?>
But I get the following error message:
Notice: Undefined variable: Body in C:Program FilesAbyss Web Serverhtdocsmail.php on line 3
Also, my antivirus thingy says:
[QUOTE]
Your email message was unable to be sent because your mail server rejected the message:
451 see [url]http://pobox.com/~djb/docs/smtplf.html.
All the relevant form elements are on the previous page (the one that when you submit the form goes to my PHP script).
The original script is here:
[url]http://www.stophon4.com/mail/index.htm
I’m very new to PHP, so sorry if it’s a easy question!
Thanks in advance,
Neil