Re: choosing another smtpserver with PHPs mail function

From: Date: Fri, 11 Jun 2004 18:32:02 +0000
Subject: Re: choosing another smtpserver with PHPs mail function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-188127@lists.php.net to get a copy of this message
Manuel Lemos wrote:
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.
It *does* work on Windows, but not on Linux.
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
-- paperCrane <Justin Patrin>

« previous php.general (#188127) next »