How do I send email from my WordPress website with Microsoft 365?
You can have the email from your WordPress website sent in two ways, both with the Easy WP SMTP plugin: via an email address on your web hosting package, or via a Microsoft 365 mailbox. This way, completed contact forms and security notifications arrive more reliably. If you have WordPress Webhosting, we set this up for you free of charge: contact us (in Dutch).
Before you start
- If your domain name does not use Microsoft 365, follow the steps under "Send via an email address on your web hosting package". If your domain name does use Microsoft 365, only the method under "Send via Microsoft 365" is possible: Microsoft 365 and email addresses on your web hosting package cannot be combined for one domain name; see Can I move some of my email addresses to Microsoft 365?
- You are logged in to WordPress; see How do I log in to WordPress from DirectAdmin?
- The names in WordPress are those of WordPress in English. If your WordPress is in Dutch, they are Plugins › Plugin toevoegen, Nu installeren, Activeren, Instellingen, Mailer, Andere SMTP, SMTP host, Encryptie, SMTP-poort, Auto TLS, Authenticatie, SMTP gebruikersnaam, SMTP-wachtwoord, Instellingen opslaan, Verzend een test and Test-e-mail verzenden.
- DirectAdmin is in English by default, so the menus and buttons in this article are named as you see them on screen. If your DirectAdmin is set to Dutch, DirectAdmin may show the Dutch names, such as E-mail Beheer instead of E-mail Manager and Account aanmaken instead of Create Account. E-mail Accounts has the same name in both languages.
- The names in the Microsoft 365 admin center are those from the Microsoft documentation. The admin center may show them in Dutch.
Enter a domain name, such as uwdomeinnaam.nl.
This value doesn’t fit here. An example: info@uwdomeinnaam.nl.
Install the plugin
Open Plugins › Add Plugin
In the menu on the left, click Plugins and then Add Plugin.
Find the plugin
Type
Easy WP SMTPin the Search Plugins field.Install the plugin
For Easy WP SMTP, click Install Now.
Activate the plugin
Click Activate.
Send via an email address on your web hosting package
We recommend this method if your domain name does not use Microsoft 365. You first create an email address in DirectAdmin for your website to send from. If your domain name uses the name servers that belong to your web hosting package, the SPF record is already correct in our DNS. If you use external name servers, update the SPF record at your DNS provider yourself; see How do I set up an SPF record?
Log in to DirectAdmin
Open the email accounts
Under E-mail Manager, click E-mail Accounts.
Click Create Account
The Create Mail Account page opens.
Create the email address
At Username, enter the first part of the email address and at Password, a strong password. Keep the password, and click Create Account.
Open Easy WP SMTP › Settings in WordPress
Go back to WordPress and, in the menu on the left, click Easy WP SMTP and then Settings.
Choose Other SMTP
At Mailer, choose Other SMTP.
Enter the server
Enter these details:
field value SMTP Host mail.uwdomeinnaam.nlEncryption SSL SMTP Port 465Auto TLS leave on Authentication leave on Enter the email address and password
At SMTP Username, enter the email address you have just created, in lower case, and at SMTP Password, its password.
Save the settings
Click Save Settings.
Send via Microsoft 365
For this, you need the email address and password of a mailbox in Microsoft 365. Authenticated SMTP must be on for that mailbox; your Microsoft 365 administrator turns it on in the Microsoft 365 admin center, under Users › Active users › the user › Mail › Manage email apps. If you get Microsoft 365 from us, we manage your Microsoft 365 environment and you ask us to turn this on. If you get Microsoft 365 elsewhere, your organisation may have turned SMTP off; in that case, ask your Microsoft 365 administrator whether they can turn it on.
Open Easy WP SMTP › Settings
In the menu on the left, click Easy WP SMTP and then Settings.
Choose Other SMTP
At Mailer, choose Other SMTP.
Enter the server
Enter these details:
field value SMTP Host smtp.office365.comEncryption TLS SMTP Port 587Auto TLS leave on Authentication leave on Enter your email address and password
At SMTP Username, enter the email address of the mailbox in lower case,
info@uwdomeinnaam.nl, and at SMTP Password, its password.Save the settings
Click Save Settings.
Any questions? Contact us (in Dutch).
Thank you for your feedback.

