note 34143 rejected from function.mail by torben
| From: | torben@php.net | Date: | Thu, 17 Jul 2003 02:49:05 +0000 |
| Subject: | note 34143 rejected from function.mail by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52243@lists.php.net to get a copy of this message | ||
Note Submitter: a_yeson@hotmail.com
----
help me.
I don't know this program error.
<?php
// PHP4 version of email script. For more info see http://www.php.net/manual/en/function.mail.php
// set some variables to mail:
$sendTo = "a_yeson@hotmail.com";
$subject = "Flash site response";
$body = $_POST["body"];
// additional header information
$headers = "From: " . $_POST["firstName"] ." ".
$_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"];
// run the mail function
mail($sendTo, $subject, $body, $headers);
?>