PHP mail() funtion, cannot access SMTP Server
Posted by: jeffreyke81 (---.jetbuster.co.nz)
Date: January 11, 2009 12:08AM

Hi all.

First of all, thanks for making life much easier from setting up Web Servers on Windows smiling smiley

My problem is I can't seem to use the mail() function in PHP.
Since we did get ask to input some SMTP information in the installation stage, maybe I just missed out some documentations somewhere.
It gives me the follow warning:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\idealbikes\test.php on line 12

I guess it might be my SMTP server is not starting up or is not installed... how can I enable my SMTP server? Or it is not included and I will have to install it myself? There seems to be a mod_smtpd for Apache, but it is not in the extension list.
Please give me some light on this.

Sorry if this is a dumb question.... tongue sticking out smiley
Thanks,
Jeffrey

Options: ReplyQuote
Re: PHP mail() funtion, cannot access SMTP Server
Posted by: jeffreyke81 (---.jetbuster.co.nz)
Date: January 11, 2009 12:26AM

Fixed, but still not sure if this is the best solution.

I found a free SMTP server for Windows.
[www.softstack.com]
The default port is 25 and DNS is localhost, so leave it as default should work fine.
Install it and restart all services and the mail() function start to work.

If there is a better solution, like build-in SMTP server, please let me know.

Thanks,
Jeffrey

Options: ReplyQuote
Re: PHP mail() funtion, cannot access SMTP Server
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: January 15, 2009 02:51PM

get you self an isp email
and use it from there
something like canadian users
smtp.broadband.roger.com
usernama and password needed
and put in the php setup

YAW ASARE

Options: ReplyQuote


Sorry, only registered users may post in this forum.