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 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 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: 60732

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

This should help.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
subject: How to Send Email from a JSP Page?
Similar Threads
General Information
thwarting email harvesters
problem with the popup
Layout approach
Serching for a surname in my collection