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...
Suggested Answer

NAV 2017 - Failure Sending mail.

(0) ShareShare
ReportReport
Posted on by

We started getting this error recently (within the past week) when sending out emails. Has anyone come across it yet. I've been googling it for a few days with no resolve.

8863.error.PNG

I suspect it's a TLS 1.2 issue but I'm unsure where/how to resolve it.

The server we are on is 2012R2 so TLS 1.2 is already enabled. I'm familiar with adding ServicePointManager.SecurityProtocol in visual studio but not C/AL.

When I try adding the dll to a dummy codeunit the option under DotNet > System.Net, the dll does not exist.

When I review our office365 settings online it shows most of the mailboxes we use on NAV are sending using 1.0

Any advice on how to force TLS 1.2 in NAV 2017?

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at

    Hello,

    Please check your office 365 setting for define mail id on SMTP setup page. Need to enable 3rd party application permission, so when Nav try to send mail using office 365 mail id it's allow to send mail.

    Verify your define ports and server details on SMTP setup page for reference please check below details.

    Server Address: smtp.office365.com

    Username: Your Office 365 Address (e.g. example@yourdomain.com)

    Password: Your Office 365 Password

    Port Number: 587 (With TLS)

    Authentication: Required

    Please verify the reply if it answers your query

    Best Regards,

    Manan Shah

  • kenthub Profile Picture
    on at

    2021_2D00_10_2D00_07_5F00_13_2D00_51_2D00_20.jpg

    We have all the settings entered for this. It's very random. Sometimes the emails go through, and then sometimes they don't. 

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Please do take a look here:

    cloudblogs.microsoft.com/.../

    Thanks.

  • kenthub Profile Picture
    on at

    Thanks, I've reviewed the article and turned off the TLS 1.0 & TLS 1.1 from internet options on the server to try and force it to go through TLS 1.2. Hopefully, that works.

  • Sivapragas Profile Picture
    10 on at

    Did it work ?

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    If you are running latest CU for Dynamics NAV 2017 and you are still not able to send email via Dynamics NAV 2017, it may well be that Exchange Online deprecated basic authentication and you are required to use OAUTH as the authentication method for sending SMTP. Currently not all Dynamics NAV releases do support OAUTH for SMTP.

    docs.microsoft.com/.../exchange-online-basic-auth-deprecated

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    95,681 Super User 2025 Season 2 on at

    Hi, is it possible that the problem is with the Application Server OS? You can download the same CU of NAV, install it locally, and test it with the same settings.

    Hope this will help.

    Thanks.

    ZHU

  • kenthub Profile Picture
    on at

    No that didn't solve the problem.

  • kenthub Profile Picture
    on at

    We are running the first version of 2017 so we plan to upgrade to the latest August Release. Hopefully, something in the dll for that codeunit will work. I'm not sure if calling and setting the security protocol to TLS 1.2 will do anything at this point. I appreciate the help in getting closer to the solution. I have high hopes this upgrade will work. We plan to migrate to the latest of business central, but that is a long way off :/

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Tls1.2 is required when connecting to Exchange Online. We added support for Tls 1.2 in a later release. This sure is a requirement for this functionality.

    RTM build of Dynamics NAV 2017 does not have this support built in. Another requirement is to also ensure your .NET Framework is up to date.

    Thanks.

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 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans