Ben Cull - Payments Engineer and Microsoft Development Professional

Using SMTP with Wordpress and IIS

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:

WP Mail SMTP -

or you can try

Cimy Swift SMTP -

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.

Setting Value
From Email [email protected]
From Name Any User
Mailer Send all WordPress emails via SMTP
SMTP Port 465
Encryption Use SSL Encryption
Authentication Yes: Use SMTP Authentication
Username [email protected]
Password yourpassword

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.

Using SMTP with Wordpress and IIS
Prev post

5 Lifesaving Tips for Creating a WCF RESTful API in .NET 4

Next post

Javascript Classes are a Best Practice for Cleaner Javascript

Using SMTP with Wordpress and IIS

Get in touch

Send me a message and I'll get back to you.