Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

SMTP in NAV 2015 Returns Error

Posted on by Microsoft Employee

I have a client who is running NAV 2009 in production.  They regularly send SMTP e-mails without error.  They are in the process of upgrading to NAV 2015.  On their NAV 2015 test server, which is different from the 2009 production server but on the same network, the SMTP TrySend function (codeunit 400) returns this error:

"Specified argument was out of the range of valid values.  Parameter name: value."

The SMTP Setup table settings are the same in both NAV versions.  Does anyone know how to troubleshoot this?

Sam

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SMTP in NAV 2015 Returns Error

    I realise you've probably figured this out by now, but for others experiencing the same issue, you need to populate the 'Port' field on SMTP Mail Setup. This should be 25 in most cases.

    Cheers,

    Sam

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: SMTP in NAV 2015 Returns Error

    check if the server, where nav 2015 resides, is correctly installed and configured within/for the AD.

  • keoma Profile Picture
    keoma 32,675 on at
    RE: SMTP in NAV 2015 Returns Error

    check the events in windows eventviewer on the server. is there an according entry ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SMTP in NAV 2015 Returns Error

    As I mentioned in my post, the SMTP setting in 2015 are the same as in 2009, which is working fine.

  • keoma Profile Picture
    keoma 32,675 on at
    RE: SMTP in NAV 2015 Returns Error

    check the SMTP setup. seems that one of the given values is not correct.

    within function TrySend following code is called:

    WITH SMTPMailSetup DO

     Mail.Send("SMTP Server", "SMTP Server Port",

       Authentication <> Authentication::Anonymous,

       "User ID", Password, "Secure Connection");

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans