What you’ll need:
- WampServer downloaded and installed (I am using version 1.7.3)
- Fake Sendmail
- GoDaddy email account (I tried Gmail and Yahoo email accounts but couldn’t get them working.)
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 GoDaddy 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 | email@example.com
- line 39 | auth_password=yourpasswordgoeshere
There are a few lines that need to be commented out/uncommented so I am providing a text version of the sendmail.ini file: sendmail.txt. Once your file looks similar to mine, 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).