This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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:

I agree. Here's the link:
subject: automatic mail from jsp page.
It's not a secret anymore!