|
Java™ by example!
|
|
|
How do I send email from a Servlet?
This example shows you how to send an email from a Servlet using JavaMail 1.2. Donwload the latest version of JavaMail at http://java.sun.com/products/javamail/index.html. Try it out with the following HTML file, SendMailServlet.java and SendMail.java. You can try out SendMail.java as a stand-alone application. SendMailServlet.java:
SendMail.java:
test.html:
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|