[Trunk | Admin Tools Library]:

1. AdminToolsLibraryCheckDeployController.java: [Bug fix] In health-check/advanced method, show "admintoolslibrary.mail.from" property correctly (it showed "auth" property).
2. EmailSender.java: Spelling error fix "Email could not be sent.".
This commit is contained in:
Konstantina Galouni 2021-11-15 11:07:42 +00:00
parent 2bc3506cf3
commit a262fe2c45
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public class AdminToolsLibraryCheckDeployController {
public Map<String, String> checkEverything() {
Map<String, String> response = new HashMap<>();
response.put("admintoolslibrary.mail.auth",mailConfig.getAuth());
response.put("admintoolslibrary.mail.from", mailConfig.getAuth());
response.put("admintoolslibrary.mail.from", mailConfig.getFrom());
response.put("admintoolslibrary.mail.host", mailConfig.getHost());
response.put("admintoolslibrary.mail.port", mailConfig.getPort());
response.put("admintoolslibrary.mail.username", mailConfig.getUsername() == null ? null : "[unexposed value]");

View File

@ -78,10 +78,10 @@ public class EmailSender {
logger.debug("Sent message successfully....\n");
return true;
} catch (AddressException ae) {
logger.error("Email could not be send.", ae);
logger.error("Email could not be sent.", ae);
return false;
} catch (MessagingException me) {
logger.error("Email could not be send.", me);
logger.error("Email could not be sent.", me);
return false;
}
}