Skip to content

Commit

Permalink
fixed error during email test receive / send. issue #2724
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 8, 2024
1 parent 203d349 commit 5b76ae9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1462,11 +1462,12 @@ public void testSendMail(String smtpHost, int smtpPort, String smtpUser, String
props.put("mail.smtps.auth.mechanisms", "XOAUTH2");
}

final String smtpPwdFinal=smtpPwd;
javax.mail.Authenticator auth = new javax.mail.Authenticator() {

@Override
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(smtpUser, smtpPwd);
return new PasswordAuthentication(smtpUser, smtpPwdFinal);
}
};

Expand Down

0 comments on commit 5b76ae9

Please sign in to comment.