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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php