Package com.elastisys.scale.commons.net.smtp

Examples of com.elastisys.scale.commons.net.smtp.SmtpMessage


    String alertMessage = JsonUtils.toPrettyString(JsonUtils
        .toJson(taggedAlert));
    try {
      LOG.debug("sending alert to {}: {}",
          this.sendSettings.getRecipients(), alert);
      SmtpMessage email = new SmtpMessage(
          this.sendSettings.getRecipients(),
          this.sendSettings.getSender(),
          this.sendSettings.getSubject(), alertMessage, UtcTime.now());
      new SmtpSender(email, this.smtpServerSettings).call();
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.elastisys.scale.commons.net.smtp.SmtpMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.