Run:
  SendMail.jsp
   

View:
sendmail.jsp
 
 
 

Using Send mail tag sample 

This sample illustrates how to send email using the email tag. You must have the mail and activation jars in your web server's classpath. You will need to supply your outgoing email server name.