File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

How to Send Email from a JSP Page?

Mallesham Karnati
Ranch Hand

Joined: May 11, 2005
Posts: 40
Hi,
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?
Regards,
Mallesham
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61772
    
  67

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
Bartender

Joined: Apr 14, 2004
Posts: 10336

This should help.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Send Email from a JSP Page?