note 34143 added to function.mail
| From: | a_yeson at hotmail dot com | Date: | Thu, 17 Jul 2003 02:36:50 +0000 |
| Subject: | note 34143 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52242@lists.php.net to get a copy of this message | ||
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);
?>
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34143
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34143&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34143&report=yes