How do I send mail from an applet?

John Zukowski

There are many different ways:

Keep in mind though that the SMTP server to use must be the same as the web server. If that is not the case, you would need to create something like a servlet on the web server that used one of the three options listed.

See also http://java.sun.com/products/javamail/FAQ.html#applets in the Sun JavaMail FAQ.