Re: choosing another smtpserver with PHPs mail function

From: Date: Fri, 11 Jun 2004 17:40:18 +0000
Subject: Re: choosing another smtpserver with PHPs mail function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188119@lists.php.net to get a copy of this message
Hello, On 06/10/2004 07:05 PM, Oôv as&äönsson wrote:
I having a little problem with PHPs build in function mail(). The mailserver isnt located on the webserver, its on another machine. I have tryed ini_set("SMTP", "ipaddress"); with no result. The system I'm on runs on an Linux box.
That does not work on Windows.
Can this be done or must I write an own mail function, with sockets?
Sure, you may want to try this class that comes with a wrapper function named smtp_mail() that works like the mail() but sends messages through a SMTP server of your choice that you can configure in the PHP script smtp_mail.php . If necessary it even supports authentication or even direct delivery, so you do not even have to relay the messages on the SMTP server. http://www.phpclasses.org/mimemessage You also need this for the actual SMTP delivery: http://www.phpclasses.org/smtpclass -- 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

« previous php.general (#188119) next »