francisguchie commented on pull request #1597:
URL: https://github.com/apache/fineract/pull/1597#issuecomment-775751216
@BLasan
Here is my "Hard Code"
if (smtpCredentialsData.isUseTLS()) {
email.setSslSmtpPort(smtpCredentialsData.getPort());
if (smtpCredentialsData.getPort().equals("465")) {
email.setStartTLSRequired(false);
} else if (smtpCredentialsData.getPort().equals("587")) {
email.setStartTLSRequired(true);
}
}
email.setSmtpPort(Integer.parseInt(smtpCredentialsData.getPort()));
email.setFrom("[email protected]", "the
senders Name");
email.setAuthenticator(new
DefaultAuthenticator("[email protected]", "itspassword"));
email.setSubject(emailDetails.getSubject());
email.setMsg(emailDetails.getBody());
email.addTo("[email protected]", "the
senders Name");
email.send();
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]