Search This Blog

Tuesday 10 May 2011

Send test emails with WampServer

I have been tried set up email sending option from WampServer for windows finally found following And seems to be very useful. However i modified this according to my needs.

What you will need:

Go ahead and install WampServer. I just installed mine to the root of the c: drive so it makes for easy access (For example, “c:\wamp”).
Next download Fake Sendmail. Fake Sendmail, aka sendmail.exe, is a simple windows console application that emulates sendmail’s “-t” option to deliver emails. Extract the sendmail.zip file and move the folder here: “c:\wamp\sendmail”.
We need the Gmail email account because sendmail.exe requires an smtp server to perform the actual delivery of the messages. Now let’s configure some settings in the sendmail.ini file located here: “c:\wamp\sendmail”.
  • line 14 | smtp_server=smtpout.secureserver.net
  • line 18 | smtp_port=80
  • line 38 | auth_username=youremail@goeshere.com
  • line 39 | auth_password=yourpasswordgoeshere

For Gmail Account:
  • line 14 | smtp_server=smtp.gmail.com
  • line 18 | smtp_port=465
  • line 38 | auth_username=youremail@gmail.com
  • line 39 | auth_password=yourpasswordgoeshere
There are a few lines that need to be commented out/uncommented accordingly. Then save and close the sendmail.ini file.
Only one step left and that’s to make a change in the php.ini. Access the php.ini using this method below.


Search for sendmail_path and set it to “c:\wamp\sendmail\sendmail.exe –t”.

Save and close the php.ini file.
You must restart WampServer for the changes to the php.ini to take effect.
Having the ability to send test emails is great especially if you frequently work on scripts that require email generation. At least I think so (I’m smiling).


1 comment: