Problems with HEADERS in PEAR::Mail
| From: | Álvaro Saraiva | Date: | Wed, 07 Dec 2005 19:59:50 +0000 |
| Subject: | Problems with HEADERS in PEAR::Mail | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-22174@lists.php.net to get a copy of this message | ||
Hi,
I'm using PEAR::Mail, and I need to set de 'From' Header to display a name
in the sender field of e-mail programs, not the e-mail adress.
I just check out all the docs, and everyone uses the format:
$headers['From'] = 'MyName <me@mysite.com>';
But with PEAR::Mail, it gives an error at line 136 of Mail.php class.
If i use only the adress as the parameter, Works fine.
Any work around for this?
Thanxs,
Álvaro