[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:
parent
2bc3506cf3
commit
a262fe2c45
|
@ -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]");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue