Re: Sending mail through localhost
| From: | Manuel Lemos | Date: | Fri, 17 Sep 2004 16:55:54 +0000 |
| Subject: | Re: Sending mail through localhost | ||
| References: | 1 | Groups: | php.db php.windows |
| Request: | Send a blank email to php-db+get-36237@lists.php.net to get a copy of this message | ||
Hello,
On 09/17/2004 04:52 AM, W Roothman wrote:
Dear All, Do I need to install a mail server, such as ArGoSoft Mail Server, on my computer (MS XP) in order to prevent this error when sending mail through a form (ref: N: Mail functions, PHP manual): Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for me@localhost.com in c:\inetpub\wwwroot\......sendfeeback.php on line 22That message means that you need to authenticate to relay the message to your SMTP server. The mail function does not support authentication. You may want to try this class that comes with a wrapper function named smtp_mail() . It works exactly like the mail() function but it lets you configure the authetication credential so you can relay your messages. http://www.phpclasses.org/mimemessage You also need this: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html