Hi Im running a windows server with Apache 2.2.8 on it (wamp if it matters), I signed for a paid SMTP (dnsmadeeasy's) and got a username and password for their smtp server. How can I login and send mail through PHP? do I need something installed? Thanks
SMTP = localhost smtp_port = 25 Changes those lines in php.ini (or using ini_set.) Dan (http://uk.php.net/manual/en/mail.configuration.php)
But it doesn't take care of the authentication issue, Im not using the windows's smtp but an external one (which requires my php to login)
Unfortunately, the built in PHP mail() Function does not support SMTP authentication. A quick Google Search, I came across this posting: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm that uses PEAR Mail Package, typically installed by hosting companies with PHP 4 and above. I've also read somewhere that fsockopen() could be used but I can't recall off hand where I saw that.
What you are looking to do requires SMTP Authentication while sending mail and it needs to be integrated into your mail function. I have a pre made script for this if you want it. I sell little scripts like this for $5!