Question Regarding NET_SMTP Package
| From: | Satpal Sohal | Date: | Thu, 08 May 2008 17:13:17 +0000 |
| Subject: | Question Regarding NET_SMTP Package | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28897@lists.php.net to get a copy of this message | ||
Hello,If I may first, thank you for putting together such a wonderful package, that makes my life
tremendously easier. I am using the example that is located on http://www.indelible.org/php/Net_SMTP/guide.htmlMy
question is quite simple, and I was wondering if you could help me out with this. I am generating
emails for an application for school. It is working flawlessly, but I need a contact name when the
email is sent. Right now, the contact name that shows up, is the email itself.I noticed in your
code, that you have the following method (mailFrom()). I see that whatever the string is, it is
encapsulated within quotes. I have tried to enter, "Testing <testing@test.com>",
but to no avail. I was wondering if you could be so kind to help me with this problem, and I'm
so grateful for your script and your help... function mailFrom($sender) { if
(PEAR::isError($error = $this->_put('MAIL', "FROM:<$sender>"))) {
return $error; } if (PEAR::isError($error = $this->_parseResponse(250))) {
return $error; } return true; } Thanks,Satpal