RE: [PHP] AOL Email client
| From: | Chris Shiflett | Date: | Fri, 08 Aug 2003 03:06:45 +0000 |
| Subject: | RE: [PHP] AOL Email client | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158762@lists.php.net to get a copy of this message | ||
--- Mark Roberts <phplist@robertscomputing.com> wrote:
> $headers .= "From: ".$name." <".$email.">\r\n";
My guess is that this line is what is causing your problems. Try this instead:
$headers .= "From: \"$name\" <$email>\r\n";
The difference is (aside from not using concatenation) that the name is quoted,
which is proper format, or at least it's how every mail client I have seen
formats it. Also, you should output your $headers as a test to make sure
everything is formatted like you think it is. Such a tactic might make things
like this more clear.
Hope that helps.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/