On 06/01/2003 10:37 PM, Tony S. Wu wrote:
hi all, i am trying to use mail() on Mac OS X 10.2 WITHOUT sendmail.
I have php.ini file in my usr/local/lib directory, with SMTP set to my desire smtp server.
But it just doesn't work.
Does anyone here know how to use mail() on OS X?
No, the mail() function only uses a SMTP server under Unix.
To solve your problem you may want to try this class for composing and sending messages that comes with a subclass for delivering via a SMTP server.
If you do not want to change much your scripts, it comes with a function named smtp_mail() that emulates the mail() function except that it send the messages to SMTP server of your choice:
To send via SMTP you also need this other class:
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php