Hey everyone, I’m stuck trying to get my Outlook SMTP to work with n8n. I’ve done all the usual stuff:
- Turned on IMAP and POP in Outlook
- Set up two-factor auth and made an app password
- Put in my SMTP details in n8n:
But I keep getting this error:
Couldn't connect with these settings Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled.
Am I missing something? Do I need to change any other settings in my Outlook account?
Thanks for any help you can give!
I encountered this exact problem recently.
Microsoft has indeed phased out basic authentication for SMTP. The recommended solution is to implement OAuth 2.0 for authentication, which, while more complex to set up, ensures enhanced security. You’ll need to register your application in the Azure portal to obtain the necessary credentials and then configure n8n accordingly. The n8n documentation provides clear instructions for this process. Once set up, managing the connection becomes much smoother. Feel free to reach out if you have further questions on configuring OAuth 2.0.
I’ve been through this headache too. Microsoft’s move to ditch basic auth caught many off guard. I set up an Azure account, registered a new app in Azure AD, configured the necessary permissions for SMTP AUTH, obtained my client ID and secret, and updated n8n with the new OAuth2 credentials. It was quite a process, but once it was completed the connection was rock solid. The n8n docs were incredibly helpful. Remember to keep your client secret safe. If Azure isn’t ideal for you, consider using Gmail SMTP or a transactional email service like SendGrid.
hey man, i had the same issue. turns out outlook disabled basic auth for smtp recently. you gotta switch to oauth2 now. its a bit of a pain to set up, but theres some good guides out there. check n8n docs for oauth2 with outlook, should point you in the right direction. good luck!