This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to send Email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to send Email" Watch "How to send Email" New topic

How to send Email

Sameer Nandgaonkar

Joined: May 13, 2007
Posts: 8
I want to send mail throgh my jsp page.For that i am display all the records to user but when user click on email hyperlink then mail shoulod send through using SMTP protocol.please anybody can tell me how to send this because i am new in java.Instead of using class we can use the JAVA mailing API in our program.
Please give me the source code of this so that i can use this in my project.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

Two things:

1) Sending mail under Java control is done through the JavaMail API which is not a part of JSP. As such this post has been moved to a more approriate forum.

2) You wrote:

Please give me the source code of this so that i can use this in my project.

That is not the prupose of JavaRanch. JavaRanch is a learning site where you can come to get some great help wiriting your code. It is not a place to come and get others to write your code for you.

So, look up the JavaMail API and let us know of any problems you may have using it in your own code.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to send Email
Similar Threads
Attachements in Java mail
how to send secret number to email
How to increase speed of mail process
sendig e mail form servlet
Authenticating users using JavaMail Api