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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

SMTP Email OAuth2.0

(1) ShareShare
ReportReport
Posted on by 44
and Hi All,
 
I see there is an update to the SMTP setup in business central which we can do custom OAuth2.0. does anyone made it successfully to test?
 
I have registered app registration, add API permission related to email, but seems not works.
got 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:
 
and also got error:
Unable to get SMTP Account password
 
Can anyone help point out whats the step and what might be missing?
 
Thanks
 
I have the same question (0)
  • Suggested answer
    CU30040957-0 Profile Picture
    18 on at
     
    You can try after testing the OAuth setup following the below steps :-
     
    1) Turn off Use Custom OAuth 2.0 Setting
     
    2) Login Microsoft Admin Centre with the Admin Access
     
    3) Navigate to Active Users and find the User Account you've specify in your Email Account. 
     
    4) Navigate to Mail section -> Manage email Apps
     
    5) Enable Authenticated SMTP option and Save changes
     
    6) Try sending a test email from the configured email account.
     
    Please let me know if this works for you, if not, please let me know the error you're facing.
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,875 Super User 2026 Season 1 on at
    Hello,
     
    OAuth2 SMTP in BC works, but you must use Exchange Online “SMTP.SendAsApp” (Office 365 Exchange Online app permission + admin consent) and ensure SMTP AUTH + OAuth2 are enabled in Exchange Online; Graph mail permissions alone won’t do it. Your 535 typically means SMTP AUTH is disabled, the Tenant ID is wrong, or OAuth2ClientProfileEnabled isn’t enabled (check Get-TransportConfig → SmtpClientAuthenticationDisabled = False and Get-OrganizationConfig → OAuth2ClientProfileEnabled = True). The “Unable to get SMTP Account password” error usually comes from the secret/password not being saved/available (for example after company copy you must re-enter it).
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Dhiren Nagar Profile Picture
    2,545 Super User 2026 Season 1 on at
    Hi,
     
    Yes it works and the detailed steps and clarification are mentioned in this post here - https://yzhums.com/54545/
     

    Tick the checkbox below to mark the answer as verified, if it helped resolve your question.

    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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans