I'm using a Linux platform running Java Servlets and a MYSQL db.
Just need a point in the right direction i think..I can write a servlet to send an email easily enough, but I want to send these emails out at a specific time. For example:
User wants to be alerted at 2:10pm that their order is ready (though the time now is only 10am) - I want to send this email at 2:10pm.
I've had a think here is my first idea:
When a email is to be sent at a specific time, its details are inserted into the database with the time to be sent
Schedule a task in Cron to run a Java Application every ten minutes.
This java application reads from the database the emails which need sending.
Question
WarStorm
Hi guys,
I'm using a Linux platform running Java Servlets and a MYSQL db.
Just need a point in the right direction i think..I can write a servlet to send an email easily enough, but I want to send these emails out at a specific time. For example:
User wants to be alerted at 2:10pm that their order is ready (though the time now is only 10am) - I want to send this email at 2:10pm.
I've had a think here is my first idea:
Is there a better way to this?
Cheers,
Greg
Link to comment
https://www.neowin.net/forum/topic/666428-java-send-email-at-specific-time/Share on other sites
1 answer to this question
Recommended Posts