"Error: [%s], " +
"Host: [%s], " +
"Port: [%s], User: [%s], Password: [%s], " +
"From: [%s], Addresses: [%s], Subject: [%s], " +
"Content: [%s]";
logger.severe(String.format(msg,
ExceptionUtils.getRealMessage(sender.getException()),
sender.getSmtpHost(), sender.getSmtpPort(),
sender.getUser(), sender.getPassword(),
sender.getFrom(), CollectionUtils.toDelimitedString(sender.getAddresses(), ";"),
sender.getSubject(), sender.getMessage()));