Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other JSE/JEE APIs and the fly likes E-mail notification using servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "E-mail notification using servlets" Watch "E-mail notification using servlets" New topic
Author

E-mail notification using servlets

KRK Gowda
Ranch Hand

Joined: Nov 02, 2004
Posts: 132
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

Joined: Dec 07, 2006
Posts: 19
You can do this using Java mail API. To learn more about it, follow this link Java Mail API
Danny Varghese
Greenhorn

Joined: Jul 21, 2005
Posts: 7
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
Marshal

Joined: Mar 22, 2005
Posts: 41148
    
  45
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: E-mail notification using servlets
 
Similar Threads
Multiple email id for post update notification
Please confirm Code works with certificate
Email Notification
Anyone else NOT get a confirmation email for SCEA Beta Part II?
A question about sending mails with servlets..