This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other JSE/JEE APIs and the fly likes sending email by a java code 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 » Other JSE/JEE APIs
Bookmark "sending email by a java code" Watch "sending email by a java code" New topic
Author

sending email by a java code

kumar prabhakar
Greenhorn

Joined: Feb 27, 2012
Posts: 13
Hi,
I am creating an online web-application using tomcat,i want to send e-mail when a user is registered.I have no idea about it.Please,
help me.
Thanks
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Read up on the Java sendmail API.

Everything you need is in this forum or via Googling Java examples.

WP
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
The API's exact name is JavaMail. And, of course, you need access to an SMTP server to use it.
 
Don't get me started about those stupid light bulbs.
 
subject: sending email by a java code