Skip to content

Instantly share code, notes, and snippets.

@WassimBenzarti
Created October 18, 2019 16:14
Show Gist options
  • Save WassimBenzarti/890fecc5b8cc1d5d633f2b1fec943e9c to your computer and use it in GitHub Desktop.
Save WassimBenzarti/890fecc5b8cc1d5d633f2b1fec943e9c to your computer and use it in GitHub Desktop.
JNDI name: mail/<name>
Mail Host: smtp.gmail.com
Default User: <email>
Default Return Address: <email>
The JNDI name must be prefixed with "mail/". Use your GMail email address in last two fields.
Skip the Advanced settings and create additional properties at the bottom of the screen:
mail.smtp.socketFactory.port: 465
mail.smtp.port: 465
mail.smtp.socketFactory.fallback: false
mail.smtp.auth: true
mail.smtp.password: <gmail_password>
mail.smtp.socketFactory.class: javax.net.ssl.SSLSocketFactory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment