Configure WAMP server to send email Configure WAMP server to send email php php

Configure WAMP server to send email


Configuring a working email client from localhost is quite a chore, I have spent hours of frustration attempting it. I'm sure someone more experienced may be able to help, or they may perhaps agree with me.

If you just want to test, here is a great tool for testing mail locally, that requires almost no configuration:

http://www.toolheap.com/test-mail-server-tool/

It worked right off the bat for me, hope this helps you.


Install Fake Sendmail (download sendmail.zip).Then configure C:\wamp\sendmail\sendmail.ini:

smtp_server=smtp.gmail.comsmtp_port=465auth_username=user@gmail.comauth_password=your_password

The above will work against a Gmail account.And then configure php.ini:

sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"

Now, restart Apache, and that is basically all you need to do.


Using an open source program call Send Mail, you can send via wamp rather easily actually. I'm still setting it up, but here's a great tutorial by jo jordan. Takes less than 2 mins to setup.

Just tried it and it worked like a charm! Once I uncommented the error log and found out that it was stalling on the pop3 authentication, I just removed that and it sent nicely. Best of luck!