I installed WampServer on my Windows 7 Ultilate computer the other day and WordPress yesterday. I attempted to test WP registration in my web site but I never received the registration confirmation email. Is this not possible on localhost? If it is how do I go about getting email to work?
localhost or not, the machine must have a mail server installed and running or SMTP simply won't work.
The configuration of the web application, in this case Wordpress, would have the ability to set up SMTP settigns? yes/no? and if so, you should be able to use a local server, or remote SMTP server say to use GMAIL SMTP services?
Now with regard to SMTP in and out of your network, some ISPs do not allow outbound SMTP. This is important because if your ISP blocks outbound SMTP, then even if you set up an SMTP server on your localhost, mail isnt going anywhere because your local SMTP server will need to send mail to other SMTP servers outside of your network.
I'm beginning to think it is not possible from my compuer. I used the instructions here and it doesn't work. All I get is this error and no mail is sent. Strange, the warning indicates the smtp host is localhost, but in php.ini I changed it to mail.gmail.com and port 587
Warning: mail() [<a href='function.mail'>function.mail</a>]: 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\testmail.php on line 8
I'm using this php script to test
echo 'Attempting to send email';
'An email has been generated from your localhost, congratulations!');
echo 'mail sendt';