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

It is sorta covered in the JavaRanch Style Guide.
subject: automatic mail from jsp page.
It's not a secret anymore!