O'Reilly logo

Java EE 6 with GlassFish 3 Application Server by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Sending E-mails from Java EE Applications

Applications deployed to GlassFish or any other Java EE-compliant application server frequently need the ability to send e-mails. Thanks to the JavaMail API—part of the Java EE specification—sending e-mails from Java EE applications is fairly simple.

In order to implement the ability to send e-mails from a Java EE application, we need to have access to a mail server, typically one using the Simple Mail Transfer Protocol (SMTP)

Configuring GlassFish

Before we can start sending e-mails from our Java EE applications, we need to do some initial GlassFish configuration. A new JavaMail session needs to be added by logging into the GlassFish web console, expanding the Resources node in the tree at the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required