Fix Office 365 SMTP Connection Failed for WordPress Email
Question details
Resolve the SMTP connection error when WordPress sends email through an Office 365 mailbox.

- Product
- Office 365 SMTP and Easy WP SMTP for WordPress
- Device & OS
- not provided
- Scenario
- A WordPress site uses an Office 365 mailbox to send email through Easy WP SMTP.
- Observed behavior
- Easy WP SMTP reports "SMTP connect() failed" when attempting to send email.
Have access to the WordPress dashboard, Microsoft 365 admin center, and hosting control panel. Confirm that the sending account has a licensed Microsoft 365 mailbox.
Correct the Office 365 SMTP submission settings
Use Microsoft 365 client submission settings and verify that SMTP authentication is allowed.
In the WordPress dashboard, open Easy WP SMTP settings and select the option for a custom or other SMTP server.
Enter smtp.office365.com as the SMTP host and 587 as the port. Select TLS or STARTTLS, not SSL-only encryption.
Enable SMTP authentication and enter the licensed mailbox address and the credentials or authorization required by your mailer. Use a sending address permitted for that mailbox.
In the Microsoft 365 admin center, go to Users > Active users, select the mailbox, and check Mail > Manage email apps for Authenticated SMTP. Also verify that organization-wide and security policies permit the authentication method your plugin uses.
Save the settings, then use Easy WP SMTP's email test tool to send a message and inspect any error details.
Check hosting connectivity and TLS support
Use this solution if the correct SMTP settings still produce a connection error.
Draft WordPress Email Content with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for an easier transition. It can help you draft email content, but it does not fix Microsoft 365 SMTP connections.

Frequently Asked Questions
Which SMTP server and port should I use for Office 365?
In your WordPress SMTP plugin, set the host to smtp.office365.com and the port to 587. Choose TLS or STARTTLS rather than SSL-only encryption.
Why does the connection still fail with the correct server settings?
Your host may block outbound port 587, or its TLS libraries may not support the required connection. Check the plugin's test error and ask your hosting provider to verify outbound access and TLS 1.2 or later.
Where can I check whether SMTP AUTH is enabled for my mailbox?
In the Microsoft 365 admin center, go to Users > Active users, select the user, and check Mail > Manage email apps for Authenticated SMTP. Organization-wide and security policies can also affect access.
Can I send through Office 365 without a licensed mailbox?
For the authenticated client submission setup described here, use a licensed Microsoft 365 mailbox. Other Microsoft 365 sending methods have different requirements and are not configured by these SMTP settings.




