This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to Send Email from a JSP Page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to Send Email from a JSP Page?" Watch "How to Send Email from a JSP Page?" New topic

How to Send Email from a JSP Page?

Mallesham Karnati
Ranch Hand

Joined: May 11, 2005
Posts: 40
I have a small sample AddContactDetails.jsp page where the website visitors add their contact details. As a site admin, I want to be emailed whenever a new user adds his contact details. How to accomplish this?
1. My ISP provides MySql databse and Resin engine (J2EE 1.3.x). What mail APIs do I need to add to my WEB-INF folder?
2. What is the syntax (or psuedo-code) for sending email portion of this page?
3. What else do I need to add to my site to accomplish this?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

To send email from Java you would use the JavaMail API. So I'm moving this to the Other Java APIs forum where the JavaMail-savvy hang out.

[Asking smart questions] [About Bear] [Books by Bear]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

This should help.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: How to Send Email from a JSP Page?
jQuery in Action, 3rd edition