note 21446 deleted from function.mail by didou

From: Date: Sat, 17 May 2003 15:20:33 +0000
Subject: note 21446 deleted from function.mail by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48159@lists.php.net to get a copy of this message
Note Submitter: destiny30@telusplanet.net 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.

« previous php.notes (#48159) next »