• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Send Email from a JSP Page?

 
Mallesham Karnati
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic