Mail function
| From: | Steven Farrier | Date: | Tue, 27 May 2003 03:06:07 +0000 |
| Subject: | Mail function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149038@lists.php.net to get a copy of this message | ||
I have change server which has new version of php requiring use of $_POST for form stuff.
I changed a mail I did in my from to this new format
mail("<fake@address.com>", "Mail from form!", "$_POST["first_name"]
$_POST["last_name"]\n$_POST["address"]\n$_POST["city"] $_POST["state"]
$_POST["zip"]\n$_POST["country"]\n$_POST["email"]\n$_POST["design"]\n$_POST[
"comments"]",
"From: $_POST["first_name"] $_POST["last_name"]<$_POST["email"]>\nReply-To: $_POST["email"]\nX-Mailer: PHP/" . phpversion()); PHP totally chokes on this, the page doesn't even show. I am sure I doing something wrong could you tell me what it is.