email script for every 15 days

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

email script for every 15 days

Dear Team,

I need to send mail to one user from site, in every 15 days .this mail is send when some files still remains in folder.

i have this script , but i don't know how to send it on every 15 days.and also send if files are still remains in folder.

Please refer above script.

var mail = actions.create("mail");
mail.parameters.to = "abc@gmail.com";
mail.parameters.subject = "new Review Task";
mail.parameters.text = "A document awaiting your approval at Alfresco";
mail.execute(document);

Please suggest!

1 Reply
Highlighted
Established Member

Re: email script for every 15 days

Hi,

Scheduled Jobs can help you to send mail at specific time period.
This links will guide you to create scheduled Jobs:

https://docs.alfresco.com/6.1/references/dev-extension-points-scheduled-jobs.html

http://alfrescoblog.com/2014/07/24/simple-alfresco-schedule-job-tutorial/#

Regards,

Vidhi

ContCentric

Regards,
Vidhi | ContCentric