this.envelop = envelop;
}
public void run() {
final Configuration root = Configuration.root();
final String mailFrom = root.getString("mail.from");
final String mailSign = root.getString("mail.sign");
String messageText = envelop.message + "\n\n " + mailSign;
String messageHtml = envelop.message + "<br><br>--<br>" + mailSign;
for (String toEmail : envelop.toEmails) {
sendEmail(mailFrom, messageText, messageHtml, envelop.subject,
toEmail);
}
Logger.debug("Mail sent - SMTP: {} : {} SSL: {} user: {} password: {} message: {}",
root.getString("smtp.host"),
root.getString("smtp.port"),
root.getString("smtp.ssl"),
root.getString("smtp.user"),
root.getString("smtp.password"),
messageText);
}