Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending email

 
cyber kanth
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am doing a project in java wherein an email(greetings) has to be sent if today's date=birthdate(stored in backend).how to send it automatically.i would also like to know if i can send mail by pressing a button
thanks,
ravi

------------------
 
ram mohan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my idea is run a thread with the waiting time of couple of hrs.Every time the thread run it can compare the date in the database with the system date.If it matches it can invoke a servlet and pass that detail(date,name,email address) which will send emails.
I hope this will work out.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this to the "Other Java APIs" forum as this is really a Java Mail question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic