Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 14, 2016 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tassioauad/4671240ea19828d69be58e463f0e50c9 to your computer and use it in GitHub Desktop.
Save tassioauad/4671240ea19828d69be58e463f0e50c9 to your computer and use it in GitHub Desktop.
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment