I want to send mail after specific time
Actually I want to send mail after 23 hour from the specific date
Now I am using java.util.TimerTask Thread to call that email function
Please help me..
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The combination of
TimerandTimerTaskshould suffice. TheTimerclass has aschedule()method. Just pass theTimerTaskand aDaterepresenting today plus 23 hours along it.where the
MailTasklook like this: