@Poremsky.com

Tips & Tricks for Windows, Office, and Whatever

  • Home
  • Windows
  • Office
  • BlackBerry
  • Web Design
  • WordPress
  • Internet Explorer

Send email generated by a self-hosted WordPress website using Office 365

Published on July 7, 2014 Last reviewed on July 7, 2014

I setup a website in WordPress and it sends email fine when I use a Gmail account but messages aren’t sent when I configure it to use my Office 365 account.

If your Office 365 account offers SMTP (usually offered with POP3 and IMAP) you can send WordPress messages through the Office 265 account. Note: Not all Office 365 resellers offer SMTP. One of my accounts is the lowest price Office 365 account that GoDaddy offers and it does not include POP3/IMAP and SMTP. (I’ve tried all of the accounts available directly from Microsoft and all offer SMTP.)

First, create the address in Office 365. It can be associated with a distribution list, a regular mailbox (including a secondary SMTP address), a shared mailbox, or even a mail-enabled public folder.

I recommend using a Distribution list, because Exchange will use the address and display name used in the active directory, not the one set in WordPress. Plus there is no fee for DLs (or shared mailboxes).

You’ll also need to give your account Send As permission to the DL.

Log into the Exchange admin center at Office 365

  1. Click Recipients
  2. To create a distribution list, choose groups.
  3. Click New (+ icon) and choose Distribution group.
  4. Enter a display name and alias, such as info, feedback, or webmaster. The messages will use the display name entered here.
  5. Keep the defaults for the rest of the options.
  6. Create a new dl group

  7. Click Save to create the DL.
  8. Select the newly created DL and click Edit (pencil icon).
  9. Click group delegation
  10. Under Send As, click the + sign and select your account.
  11. Give your account delegate permissions

  12. Click Save.

Optional: Check the option to hide it from address lists. It keeps the GAL cleaner looking and no one but WordPress should be using this address. On the delivery management page, select Sender inside and outside of my organization. This allows people to reply to the WordPress messages (which will go directly back to your mailbox) so you may want to keep it on the default of only senders inside the organization.

Once Office 365 is configured, you need to get the Configure SMTP WordPress plugin by Scott Reilly. Yes, it’s old and hasn’t been updated in a very long time, but it still works.

Use the following values in the fields. Save and send a test message.

Field Value
SMTP host: smtp.office365.com (outlook.office365.com works as well)
SMTP Port: 587
Secure Connection prefix: TLS
Use SMTPauth: Yes (Checked)
SMTP username: Your Office 365 email address
SMTP password: Your Office 365 account password
Wordwrap length: Leave blank
Sender email: The email address for the DL created earlier.
Sender Name: Exchange will use the display name from the Distribution Group.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Print
Subscribe
Notify of
8 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Andy Norris
January 7, 2017 12:52 am
#277

Nice. Thank you.

0
Reply
Lisa
November 21, 2016 4:16 am
#272

I used Easy WP SMTP for the plugin as the older one seems to be throwing up lots of php errors for people. It worked like a charm. Thanks for the instructions!

0
Reply
Fred Morgan
October 29, 2016 8:54 am
#270

Thanks you so much - just what I needed and worked a treat for me straight away

0
Reply
Sebastian
August 19, 2016 12:01 pm
#257

Hi, I followed the instructions but I got a 405 Not Allowed

0
Reply
Diane Poremsky(@dporemsky)
Author
Reply to  Sebastian
August 22, 2016 1:36 pm
#258

You get that in Office 365 or in Word press when you tried to set up the account?

0
Reply
Cathy
October 22, 2015 12:00 pm
#163

Thanks! It worked great for me.

0
Reply

Recent Posts

  • Server drafts location is not valid error message
  • What is the Brown File Box Icon on Files in Windows 11?
  • Remove Office Licenses from Windows
  • Add the Recent Items Folder to Windows 10 Quick Access
  • A New Scam? Cashing in on Kohl's Cash

Recent Comments

  • FUAD on Remove Office Licenses from Windows
  • Brian DuBridge on Add the Recent Items Folder to Windows 10 Quick Access
  • Renee Moodie on Remove Office Licenses from Windows
  • John P on Remove Office Licenses from Windows
  • Puja on Remove Office Licenses from Windows
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

© 2023 · @Poremsky.com

wpDiscuz
Go to mobile version
You are going to send email to

Move Comment