Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 14, 2016 16:42
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/5985540549a9c949650dc3eef4a2eea1 to your computer and use it in GitHub Desktop.
Save tassioauad/5985540549a9c949650dc3eef4a2eea1 to your computer and use it in GitHub Desktop.
Session session = Session.getInstance(props, new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("emailrementente@servidor.com", "senha");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment