Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

E-mail notification using servlets

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i have to write a servlet that takes recipients address and generate a email to him. i am totally new to this concept of using servlet for email notification.

can anybody help me in this matter?


Thanks and Regards,
 
Ravinder Rana
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this using Java mail API. To learn more about it, follow this link Java Mail API
 
Danny Varghese
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've had experience with this and just to add to Ravinder's comments, you can also use spring to configure the mail message.

http://www.springframework.org/docs/reference/mail.html
http://www.springframework.org/docs/api/org/springframework/mail/javamail/JavaMailSender.html
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also use spring to configure the mail message

Since the original post doesn't mention that Spring is being used, it seems like serious overkill to use it just to send emails. JavaMail is easy to get started with.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic