This post explains how to use SMTP instead of PHP Mail to fix issues when using Wordpress and IIS.
If you are having issues allowing your wordpress blog to send email and you are running IIS 7 (or you are on shared hosting), you may need to use SMTP instead of PHP Mail when trying to send emails. Here’s a quick guide to setting up SMTP.
#1 | Download an SMTP Wordpress Plugin
There are a couple of good plugins you can download, the one that worked for me is:
or you can try
Once you have downloaded a plugin, make sure you install and activate it.
#2 | Set your SMTP Settings
These details change depending on your hosting situation, however most of the time your hosting provider should be able to give them to you.
I use Google Apps, so the following information is specific to Google Apps users. I’m also following the structure of the WP Mail SMTP plugin to make things easier.
|From Name||Any User|
|Mailer||Send all WordPress emails via SMTP|
|Encryption||Use SSL Encryption|
|Authentication||Yes: Use SMTP Authentication|
If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test.
Any emails sent from wordpress should now be working.
If you are interested in setting up a contact form
I’d recommend using the ContactForm7 Plugin as it’s quick and simple to setup.