Outlook.com Settings for WP Mail SMTP

Screenshot of SMTP settings


After migrating this blog to WordPress I found that I needed to setup email notifications for comments and the like.  I ended up using the WP Mail SMTP plugin with Outlook.com. Anyway, Here are the settings that worked for using Outlook.com as an SMTP server for WordPress notifications.

From Email: Any email that you own that uses Outlook.com, Live.com or Hotmail

From name: Any Name you want.

Mailer: Send all WordPress Email via SMTP

Return Path: Unchecked

SMTP Host: smtp.live.com

SMTP Port: 587

Encryption: Use TLS Encryption. This is not the same as STARTTLS. For most servers SSL is the recommended option.

Authentication: Yes: Use SMTP Authentication

Username: Your Outlook.com email including the @outlook.com, @live.com or @hotmail.com

Password: Your Outlook, Live or Hotmail password.

Use the “Send a Test Email” section to make sure everything works.

If you have a firewall setup (and you should), you’ll have to let that traffic out as well. If you are using Linux and iptables here are the iptables rules that allow that traffic to get out while still blocking new incoming connections on port 587.

iptables -A OUTPUT -p tcp –sport 587 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp –dport 587 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp –sport 587 -m state –state RELATED,ESTABLISHED -j ACCEPT

And now you’ve got WordPress using Outlook.com for all of the notifications. Rejoice!



A name is required.
An email is required.
Invalid URL

  1. not work for me

  2. doesnt work for me… I checked the outlook smtp is states:
    smtp-mail.outlook.com with STARTTLS

  3. did this work for you?

    • Sure did. That’s why I wrote it down here. I had a couple instances of outlook.com thinking the authentication was suspicious, but it’s been ok since then.

      • arvind May 19, 2019

        This works but attachments sent are stripped to 0 bytes