On 09/17/2004 04:52 AM, W Roothman wrote:
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 [EMAIL PROTECTED] in c:\inetpub\wwwroot\......sendfeeback.php on line 22
That 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.
You also need this:
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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php