Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

e-mail sender!

 
Jeff Dube
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on a JSP that insert all data from a form to a database when the submit button is clicked. The user need to get a password before entering the forms page.
The user send us a mail and the system have to automatically send a mail within a password.
My question is: How can i send automatic e-mail?
Any reference or information would be appreciated.
Thanks
Jeff
 
Jeff Dube
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a ask a question to your forums, there is a check box for "Email notification". I need to do something similar to this...
that automatically send an e-mail
Thanks
Jeff
 
Adam Chace
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,
You should take a look at the JavaMail API which provides functionality for sending email in Java. If the web/appserver you are using doesn't include JavaMail support then there are a few simple classes out there that will send email as well. If this the case, email me at adam@chalkcreek.com and I will send you one that I like to use.
-Adam
 
Wirianto Djunaidi
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,
If you are going to use JavaMail API, you also need to download
Java Activatio Framework.
So you'll need mail.jar and activation.jar in your lib directory.
Ryo
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an excellant example of creating a taglib to utilize the JavaMail API from a JSP page in Adam's book.
[This message has been edited by Carl Trusiak (edited June 26, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic