JavaMail - sending a email to particular address everytime a form is submitted
Hi,
I am a trying to make some enchancements to my previous application. In this application we developed a form using jsp which contains few fields. Once a user fills this form and click the submit button an email should go to admin with a message ( record is submitted by the XYZ person). Please if any one could help me out in this issue , how to do it.
Many thanks in advance
Anbr19
[411 byte] By [
anbr19a] at [2007-11-26 23:09:17]

# 2
Hi,
I know i should use javamail but i am ot sure how to implement it bcoz in my project whenever a user sumbits a record , a meeasge should go to datamanager that a record is submitted by this user. And also one moret hing if a user submits simultaneously morethan 1 record at a time then only one message should go to datamanager by that user Please could you tell me elabrately how to do exactly. This is very urgent.
Thanks in Advance
Anbr19.
# 3
JavaMail will send the message for you, but you have to figure out whento send the message. Most of your problem seems to be about figuringout when to send a message, which is not a JavaMail problem.
# 5
When the form is submitted, some servlet or JSP runs in your server, right? So put JavaMail code in that servlet or JSP to do whatever you want done.