Thanks,
David
I’m trying to set up SMTP for my client, but it won’t connect no matter what i try.
I have been in touch with Microsoft, and they said the problem is not on their side. I have attached the full report:
Versions:
WordPress: 6.7.1
WordPress MS: No
PHP: 8.2.27
WP Mail SMTP: 4.3.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out
Host: smtp.office365.com
Port: 587
SMTPSecure:tls
SMTPAutoTLS:bool(true)
SMTPAuth:bool(true)
Server:
OpenSSL: OpenSSL 3.0.2 15 Mar 2022
Debug:
Email Source: WP Mail SMTP Mailer: Other SMTP SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out
SMTP Debug:
2025-01-06 21:12:51 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2025-01-06 21:13:21 Connection failed. Error #2: stream_socket_client(): Unable to connect to smtp.office365.com:587 (Connection timed out) [/customers/8/7/c/c2nfq9api/webroots/67abf991/wp-includes/PHPMailer/SMTP.php line 412]
2025-01-06 21:13:21 SMTP ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host. Failed to connect to server
Please help me. Thank you in advance.
]]>We are facing a 422 Forbidden error when connecting to Office 365 (Microsoft). We followed the entire tutorial to the letter, but we could not find a possible cause for the problem.
Could you help or tell us how we can find a solution?
]]>I set the FluentSMTP up with my Microsoft 365 Exchange account, following this tutorial: https://fluentsmtp.com/docs/setup-outlook-with-fluentsmtp/
Under “Add client secret” it says that the secret will expire in 180 days.
Does this mean that I need to create a new secret after 180 days, or will the connection between FluentSMTP and Microsoft 365 keep working anyway?
Thank you!
]]>Most of the mail plugins which support Office 365 are all premium/paid and I needed to know they would work before committing to them.
FluentSMTP is absolutely awesome. Set it up and it works with Office 365 perfectly. Just remember that when you click on “Authenticate” that you must login with the account that is going to send the e-mail, not the tenancy admin. The API needs to communicate with an account that has an Office 365 license.
And yes – the “Access Code” you get is way longer than the one shown in the documentation. this is totally normal.
Thanks for a great plugin!
]]>Is it possible to use this plugin to send mail with a Microsoft 365 account?
I’ve done it successfully with a Google Workspace (GSuite) account, using an App password. So I thought an App password would be the way to go on M365.
But recently Microsoft has discontinued App passwords and I believe Multi Factor Authentication (MFA) becomes a hurdle because (naturally) the plugin doesn’t support MFA.
Does anyone have any experience with this?
]]>When we use the SMTP setup for O365 (How to set up a multifunction device or application to send email using Microsoft 365 or Office 365 | Microsoft Learn Option 1) we get the following error when trying to send internally or externally:
CLIENT -> SERVER: [credentials hidden]CLIENT -> SERVER: [credentials hidden]SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [LO6P123CA0015.GBRP123.PROD.OUTLOOK.COM]
SMTP Error: Could not authenticate.CLIENT -> SERVER: QUIT
SMTP Error: Could not authenticate.
Note we are using an app password for the user’s password as they are using Microsoft MFA.
When we use Direct Send (option 2 in the above link) we can successfully send internally, but not externally, getting the following error:
SMTP ERROR: DATA END command failed: 451 4.4.62 Mail sent to the wrong Office 365 region. ATTR35. For more information please go to https://go.microsoft.com/fwlink/?linkid=865268 [LO2GBR01FT013.eop-gbr01.prod.protection.outlook.com]
SMTP Error: data not accepted.
Any insight would be much appreciated.
]]>