With playframework, I\'m trying to run a function to send a mail every day at 11PM but I don\'t know how to do. I found many answers accros the internet but I haven\'t managed t
Have a look at Akka Scheduler and Play! Scheduled jobs
EDIT:
I'll personally prefer Play! scheduler which uses cron. So in the example (copy/paste), you could create a Scala class similar to this:
import play.jobs.*;
/** Fire at 12pm (noon) every day **/
@On("0 0 12 * * ?")
public class Bootstrap extends Job {
public void doJob() {
Logger.info("Maintenance job ...");
...
}
}
I suggest you to use akka quartz scheduler https://github.com/enragedginger/akka-quartz-scheduler