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
Joined: Jun 14, 2001
Posts: 44
posted
0
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
Joined: May 24, 2001
Posts: 14
posted
0
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
Adam Chace<BR>Author of :<A HREF="http://www.amazon.com/exec/obidos/ASIN/193011009X/electricporkchop/102-2552103-3190518" TARGET=_blank rel="nofollow">JSP Tag Libraries</A><BR><A HREF="http://www.chalkcreek.com" TARGET=_blank rel="nofollow">Chalk Creek Software</A>
Wirianto Djunaidi
Ranch Hand
Joined: Mar 20, 2001
Posts: 195
posted
0
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
Joined: Jun 13, 2000
Posts: 3340
posted
0
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).]