wood burning stoves 2.0*
The moose likes Servlets and the fly likes email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "email" Watch "email" New topic
Author

email

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
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


Abhishek
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
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?


Ping & DNS - my free Android networking tools app
Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
thanks for the reply, Is it better to write a service or a scheduler...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
In this context I'm not sure what either "service" or "scheduler" means.
 
Consider Paul's rocket mass heater.
 
subject: email