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

