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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Authentication issue when using SMTP in D365 FO

(1) ShareShare
ReportReport
Posted on by 337

I hope someone can assist me with an issue we have been experiencing with mail authentication when attempting to send reports, like invoices and quotations, to customers via email. I am a non-technical consultant to apologies in advance if any of these things should be obvious. 

I have configured our email parameters in D365 FO
1425.Screenshot_5F00_1.png

6406.Screenshot_5F00_2.png

When I test the connection I get the following error: Mail authentication failed. Please verify your SMTP user name and password. If your SMTP server doesn't support authentication, please clear the SMTP user name and password. Server smtp.office365.com:587 using SSL/TLS supports the following authentication options: LOGIN, XOAUTH2.

You get the same error when generating a sales quote, for example, and using print management to email the document to your customer

5282.Screenshot_5F00_3.png

Printing of documents and delivering via emails were working when last I tested it a while back. Our customer has said that they haven't made any permission changes to the email account. 

Are there new authentication protocols that Microsoft has released perhaps that means either our setup or the permission on the AD account is outdated? I have tried Googling parts of the error message and it does look like their is a new OAuth 2.0 authentication protocol for SMTP, but I am struggling to find clear guides of what needs to be updated on the AD Account or within D365,

Any assistance is always greatly appreciated.

I have the same question (0)
  • Verified answer
    huijij Profile Picture
    19,811 on at

    Hi Liese,

    Did you also ping smtp.office365.com working fine?

    This issue could be related with the SMTP authentication submission which can be disabled:docs.microsoft.com/.../authenticated-client-smtp-submission

  • Verified answer
    Liese-Marie Heyns Profile Picture
    337 on at

    In the end I think it was the new OAuth authentication methodology that caused the error. I don't know what the exact resolution was, but our client needed to accept some conditions on the Microsoft AD permissions side and reset the password.

    It is now working correctly again.

  • Suggested answer
    SouravDam Profile Picture
    11,730 on at

    Hi Liese-Marie Heyns,

    Good to know that SMTP is working fine with you.

    Also, have you tried with the Batch email provider with "Exchange" ?

    pastedimage1632180744108v1.png

    Regards,
    Sourav

  • Moncada Profile Picture
    5 on at

    Hi, Liese
    I have the problem too, and I haven´t been able to fix it, may I have a tip

    Tks

  • Suggested answer
    Pawel_Kolosza Profile Picture
    18 on at
    Hi,
     
    make sure that authentication password is re/filled by the user account with authenticated SMTP Marked/Enabled.
     
    Kindly follow these steps to set up SMTP authentication:
    • Go to Admin.Microsoft.com 
    • Log in with a security Admin, Global Admin 
    • Expand Users > Active Users
    • Click the User that will connect as SMTP
    • Click the Mail Tab
    • Click on Manage Email Apps
    • Make sure that Authenticated SMTP is Marked/Enabled 
     Please note that additional setting may be under: Microsoft 365 admin center under Org settings | Modern Authentication | Authenticated SMTP Mark/Enable Authenticated SMTP

    Enable or disable SMTP AUTH in Exchange Online | Microsoft Learn

     

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

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 > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 196 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 139 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans