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 :
Microsoft Dynamics NAV (Archived)

How send a mail 1 time per day using job queue.

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

I want to know how to send a auto email 1 time per day with report using job queue in nav 2016.

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Andrey Baludin Profile Picture
    3,941 on at

    It's better to use codeunit in this case.

    Create new one. In OnRun trigger create SMTPMail variable = codeunit 400.

    Then print something like that:

    SMTPMail.CreateMessage('test object','Sender Name','test@mail.com','test','some text body',FALSE);

    SMTPMail.Send;

    Create new Job Queue entry based on your codeunit. Setup it in its card like recurring job on each day with desirable time of send and with time between runs = 0. Run it.

    That's basically all.

  • Community Member Profile Picture
    on at

    Hi Andrey ,

    i have created the codeunit and called through job queue but i dont idea about 1 time send mail per day thats what i asked.

    Thank you

  • Verified answer
    Andrey Baludin Profile Picture
    3,941 on at

    Check your NAV instance and setup the NAS Settings tab:

    [View:https://msdn.microsoft.com/en-us/library/dd355055(v=nav.90).aspx#NASServices:750:50]

    You need to set startup codeunit = 450 and Run NAS with admin rights = true.

    Also the good idea is to use separate instance for batch jobs.

    Job queue entry card for 1 time per day run looks next way:

    1172.jobqueue.JPG

  • Community Member Profile Picture
    on at

    Hi Andrey,

    Thank you so much for your reply.

  • Community Member Profile Picture
    on at

    Hi Andrey,

    my mail not sending im facing same problem again which i faced before,please see below

    screen shot.

    5807.mail.png

    Thank you

  • Suggested answer
    Andrey Baludin Profile Picture
    3,941 on at

    If you run your codeunit manually - is it sending?

    Also you forgot to set Starting time.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans