Re: mail() on *nix using ssmtp or an external smtp server?
| From: | Manuel Lemos | Date: | Mon, 16 Aug 2004 18:34:36 +0000 |
| Subject: | Re: mail() on *nix using ssmtp or an external smtp server? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193989@lists.php.net to get a copy of this message | ||
Hello,
On 08/16/2004 10:00 AM, Markus Mayer wrote:
- Does anyone know of a way to make PHP on *nix use an external smtp server without having to hack around in the source code of PHP? - Has anyone got either ssmtp or esmtp working with PHP?You may want to try this class that can be used to do precisely what you want. You can compose and send messages and have them delivered to an SMTP server of your choice. If you do not want to change your scripts much, it comes with a wrapper function name smtp_mail() that can be used with exactly the same arguments as the mail() function, but it lets you send messages via an SMTP server. It can even let you configure authentication credentials if you are required to authenticate to relay on the SMTP server. http://www.phpclasses.org/mimemessage -- 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