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
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
If you run your codeunit manually - is it sending?
Also you forgot to set Starting time.
Hi Andrey,
my mail not sending im facing same problem again which i faced before,please see below
screen shot.
Thank you
Hi Andrey,
Thank you so much for your reply.
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:
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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156