web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

SMTP Email Setup in Business Central using OAuth 2.0

(0) ShareShare
ReportReport
Posted on by 2,526
Hey Community,
 
My requirement is very simple - I have one Exchange Plan 1 License assigned to a user's account (which is not a global admin account). This email needs to be used for sending the email notifications to be sent based on the approval workflow. We have setup a workflow and added the "Approval" entry in Workflow Notification setup with userid as blank.
 
Now, this email account works well for the first level approval and sends the email - "This purchase invoice requires your approval", but then the emails stops working, and in the email outbox I see this error - 
 
"The SMTP server rejected the authentication request, as the authentication data is incorrect. Verify that your Username and Password are correct and that the SMTP server supports the specified authentication type (OAuth 2.0). SMTP error code: 535. Status code: 535:"
 
Is there anything that I am missing in workflow or email account setup?
 
Is there any way I can setup an email account using OAuth 2.0, via which emails can be shot despite of which user is logged in?
 
I tried basic authentication as well in SMTP setup via App Password, but is seems to be not working as well.
 
Any help would be appreciated.
I have the same question (0)
  • Suggested answer
    Dhiren Nagar Profile Picture
    699 on at
    Hi,
     
    This is because Microsoft is rolling out Basic Authentication in SMTP and hence now SMTP email setup with Basic Authentication won't work.
     
     
    You can follow below guide to complete the setup of SMTP with OAuth2.0. This will make sure that your SMTP email setup works correctly in future upgrades as well.
     
     
    Now as far as Email notification is concerned you need to make sure that this SMTP email should be specified as either Default Email Account in Email Account list or should be assigned with Email scenario for Workflow notification.
     
     
     
    Regards,
    Dhiren

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#3
YUN ZHU Profile Picture

YUN ZHU 748 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans