Sending email from your Outlook/Office365 SMTP in n8n 535 5.7.139 Authentication unsuccessful

Hello everyone!

Quick question… I’m trying to send email from n8n, but Outlook gives the following error:

Outlook/Office365 SMTP in n8n 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant

But I’ve already enabled the Authenticated SMTP options, and it still gives the error. It seems the only option I have is to disable the default security settings in Microsoft 365? Any other options?

This error occurs because Microsoft disables SMTP Auth by default for greater security. Although you can manually enable it for that user from the Microsoft 365 dashboard, I recommend migrating to the Microsoft Graph API, which is much more secure and modern.

With the Graph API, you can send emails by authenticating via OAuth 2.0. This avoids the security and authentication issues caused by traditional SMTP.

Here’s the link to the documentation:

The method you are using has been disabled by default by Microsoft since 2022 for security reasons.

Gracias Erick!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.