in src/main/java/org/apache/sling/cli/impl/mail/Mailer.java [64:75]
public void send(String source) {
Properties properties = new Properties(SMTP_PROPERTIES);
Session session = Session.getInstance(properties);
try {
MimeMessage message = new MimeMessage(session, new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8)));
Credentials credentials = credentialsService.getAsfCredentials();
Transport.send(message, credentials.getUsername(), credentials.getPassword());
} catch (MessagingException e) {
LOGGER.error(String.format("Unable to send the following email:%n%s", source), e);
}
}