Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. static class SMTPAuthenticator extends Authenticator {
  2.  
  3. private static final String SMTP_AUTH_USER = user;
  4. private static final String SMTP_AUTH_PASSWORD = password;
  5.  
  6. public PasswordAuthentication getPasswordAuthentication() {
  7. String username = SMTP_AUTH_USER;
  8. String password = SMTP_AUTH_PASSWORD;
  9.  
  10. return new PasswordAuthentication(username, password);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement