note 21446 added to function.mail
| From: | destiny30 at telusplanet dot net | Date: | Mon, 13 May 2002 19:37:44 +0000 |
| Subject: | note 21446 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30593@lists.php.net to get a copy of this message | ||
I tried using the name and e-mail address for the $to, as shown in example 4, but it did not work.
So, I had to double quote the name and escape those doubles quotes, i.e.: $to =
"\"Fullname\"<theuser@thehost.com>";
This also worked for the $from variable, which is then part of the $header variable, i.e.:
$from = "\"The From name\" <thefromuser@thefromhost.com>";
$header = "From: $from\n";
Hope it helps.
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+21446
http://master.php.net/manage/user-notes.php?action=delete+21446
http://master.php.net/manage/user-notes.php?action=reject+21446