Notifications
Announcements
No record found.
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
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.
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.
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,
Thank you so much for your reply.
my mail not sending im facing same problem again which i faced before,please see below
screen shot.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HoangNam 7