also have a look at phpmailer  class.



From: Manuel Lemos <[EMAIL PROTECTED]>
CC: PHP <>
Subject: [PHP-DB] Re: Mail question
Date: Sat, 19 Feb 2005 16:48:44 -0200


on 02/14/2005 04:12 PM ReClMaples said the following:
I have a quick, probably easy to answer question. I am trying to add the
ability to email from like a quest book or a calendar event and get an
authentication error in my error log. I can only believe that this is due
to my smtp server needed to know my login and password. Is there a way I
can pass this in the php.ini file? I am using apache 2.0 and PHP 4.03 on a
windows xp machine. If this can be done, please let me know, any other
suggestions would be welcomed.

The mail function does not support SMTP authentication.

You may want to try this class that comes with a wrapper function named smtp_mail(). It is a direct replacement of the mail() function that lets you send messages to any SMTP server that requires authentication.

You also need these:


Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP

PHP Reviews - Reviews of PHP books and other products

Metastorage - Data object relational mapping layer generator

PHP Database Mailing List (
To unsubscribe, visit:

-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to