Re: smpt server requiring authentication

From: Date: Fri, 23 Jul 2004 00:09:26 +0000
Subject: Re: smpt server requiring authentication
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191590@lists.php.net to get a copy of this message
Hello, On 07/22/2004 04:47 PM, Chris Hunt wrote:
anyone know how to configure php's outgoing mail to use a smtp server that requires authentication?
No, the mail() function does not support SMTP authentication even under Windows. As John correctly pointed, I have a solution that consists of a PHP Class for sending messages via SMTP that comes with a wrapper function named smtp_mail(). It works exactly like the mail() function, except that it lets you specify a SMTP server of your choice to relay the message and can authenticate if necessary, like you need. You may find the class here: http://www.phpclasses.org/mimemessage You also need this other class for the actual SMTP delivery: 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

« previous php.general (#191590) next »