Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

email

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirment in my web application, wherein if a particular time has been reached, one email has to be send to the user..

can any one give me suggestions in implementing such requirement
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the scheduling, the java.util.Timer and TimerTask classes will help.

Sending emails is done with the JavaMail API; see the JavaRanch J2EE FAQ for links about that. Do you have a mail server you can use?
 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply, Is it better to write a service or a scheduler...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this context I'm not sure what either "service" or "scheduler" means.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic