SMTP for Microsoft Office365

Modified on Thu, 20 Jul 2023 at 09:21 PM

  1. Go to admin.microsoft.com and login with your global administrator account
  2. Go portal.azure.com
  3. From the left panel choose “Properties”
  4. Click “Manage Security Details” at the bottom of your screen
  5. From the panel that opens change the dropdown to “Disabled (not recommended)”

POWERSHELL COMMANDS


Install-Module -Name ExchangeOnlineManagement

Reply: A (yes to all)


Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
Set-CASMailbox -Identity EMAIL_ADDRESS_GOES_HERE -SmtpClientAuthenticationDisabled $false

DNS Records

  1. Add a TXT record to the DNS zone for your domain on the server. (see record configuration below)
_dmarc.yourdomain.com 3600 IN TXT v=DMARC1; p=quarantine

CONFIGURING SMTP

  1. Download WP Mail SMTP plugin (required)
  2. Use the following setting for configuration.

HOSTsmtp.office365.com
ENCRYPTIONTLS
AUTHENTICATIONON
SMTP USERNAMEyourname@yourdomain.com
PASSWORD(Office365 password for this licensed user)

See documentation

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article