Mail::send()
| From: | Erik Heerlein | Date: | Fri, 07 Jan 2005 20:19:58 +0000 |
| Subject: | Mail::send() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16796@lists.php.net to get a copy of this message | ||
The example in the docs for specifying the From header is:
$headers['From'] = 'richard@example.com';
I would like to do something like
$headers['From'] = 'Richard Example <richard@example.com>';
so that the when the recipient gets the email, their email client says the email is from "Richard Example" rather than "richard@example.com". When I try my example I get, "Validation failed for "Richard Example <richard@example.com>".
Is there a way to accomplish this or does the value for the array have to be an email address and only an email address?
- Erik Heerlein