File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes automatic mail from 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 » JSP
Bookmark "automatic mail from jsp page." Watch "automatic mail from jsp page." New topic

automatic mail from jsp page.

Arun Vethadas .T
Ranch Hand

Joined: Dec 13, 2001
Posts: 36
i want to send automatic mail from jsp page,
where i submit the page,it automatically send the mail to some id. how i do that.pls. help me.
Les Dsouza

Joined: Jan 29, 2002
Posts: 27
You can use the javamail api for this. You'll also need the JAF API.
You can get the javamail API and java activation framework (JAF) API from the sun site.
Check out the code below, you can adapt it to your needs:

Don't get me started about those stupid light bulbs.
subject: automatic mail from jsp page.
Similar Threads
Using javamail how automaticmail send
e-mail sender!
Mail Alerts on birthdays
Java Mailing
How to send mail when submiting form