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 :
Small and medium business | Business Central, N...
Unanswered

Error when sending mail via SMTP "A call to MailKit.Net.Smtp.SmtpClient.Authenticate failed with this message: 5.7.3 Authentication unsuccessful"

(2) ShareShare
ReportReport
Posted on by

Hello,

When sending mail via Dynamics 365 Business Central, the following error may show up:

pastedimage1581323981979v1.png

After looking up the details, the following error:

pastedimage1581324047753v2.png

This error is typical for Dynamics 365 Business Central SaaS release. The error itself if really that the password is incorrect, that said the error is not really an error. As a CSP, the requirement is to enable MFA on a per user base hence the message about MFA. When generating the App password which is required for the SMTP user account (and CRM user account), it is common to select the password by double clicking the App password field. However, next to the password field, there is a button that you can check to get access to the whole password field. 

E.g. double clicking with the password field (does not seem to copy the whole field):

pastedimage1581324342187v3.png

Doing it this way, does seem to result in no SMTP error:

pastedimage1581324463962v4.png

We do not have a consistent repro of this behavior, but we have seen this issue being logged a few times to CSS times. 

I have the same question (0)
  • Marco Mels Profile Picture
    on at

    Not a question.

  • cjac Profile Picture
    5 on at

    Hi Marco, this does not seem to work in my environment (Dynamics 365 Business Central SaaS 15.2,SC 9.3.5). I've created an APP password and copy/pasted in different ways. I've also tested it within a user session that doesn't have MFA activated yet.

  • Marco Mels Profile Picture
    on at

    Hello,

    Did you enable MFA via an Azure policy?

    Thanks.

  • keoma Profile Picture
    32,729 on at

    is the mailkit library used in bc saas by default?

    please better write a blog post about that topic.

  • Marco Mels Profile Picture
    on at

    Hello,

    Yes, mimekit/mailkit are included:

    www.mimekit.net/.../N_MailKit_Net_Smtp.htm

    Thanks.

  • KC Lai Profile Picture
    335 on at

    Hi Marco,

    I have turned on MFA and also got the sames error. No email could be sent.

  • John Ray Patajo Profile Picture
    837 on at

    Hi KC and Marco,

    Just make sure your Contact Email on the User card and Email in the User Set-up is within the domain.

    Thanks.

    Regards.

  • Marco Mels Profile Picture
    on at

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans