Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error sending invoice with email on Nav 2009

Posted on by Microsoft Employee

Hello,
I am having difficulty trying to send invoices with email. Every time it stops showing an error message (check image attached). I have outlook configured properly, the dll files of mail are on place.
I would really appreciate if you could help me resolve this problem since this has happened on different clients installation of NAV.

111.jpg

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error sending invoice with email on Nav 2009

    Hello Amol. I am sorry for replying so late. I followed your instructions and you were right. Now it works, since I tried this with 2 clients installation. But on 2 other clients, reinstalling the NAV still doesn't fix the problem. On these clients, I get a slightly different error message. I am attaching it so if you know what is the difference and how to solve this particular problem, I would really appreciate it.

    Best Regards,

    Stela.

    7418.1.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error sending invoice with email on Nav 2009

    Hi Amol, okay I'll try this and let you know.

    Thank you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error sending invoice with email on Nav 2009

    Suresh here is the code:

    Sale := "Sales Header";

    Sale.SETRECFILTER;

    IF REPORT.SAVEASHTML(SendReport, GetFileName, FALSE, Sale) THEN

     IF Mail.NewMessage(Vmail, '', Subject, Body, GetFileName, FALSE) THEN

       NoOfEmials := NoOfEmials + 1;

    But I don't think it is a code related problem. Because the same code works on other nav clients, and on some others no..

  • Verified answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Error sending invoice with email on Nav 2009

    It seems you have not install the client and just copy the installed folder of Navision from another machine. Try to install navision with installed and then check

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error sending invoice with email on Nav 2009

    Can you please share the code you are using ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error sending invoice with email on Nav 2009

    Hi Suresh, thank you for answering.

    I am using NAV 2009 Classic

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error sending invoice with email on Nav 2009

    Are you using NAV 2009 Classic or RTC ?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans