Re: Mail() on OS X
| From: | Manuel Lemos | Date: | Mon, 02 Jun 2003 02:05:36 +0000 |
| Subject: | Re: Mail() on OS X | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28201@lists.php.net to get a copy of this message | ||
Hello,
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: http://www.phpclasses.org/mimemessage To send via SMTP you also need this other class: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/