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

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


    if (alertsConfig != null) {
      LOG.debug("configuring SMTP alerter.");
      SendSettings sendSettings = new SendSettings(
          alertsConfig.getRecipients(), alertsConfig.getSender(),
          alertsConfig.getSubject(), alertsConfig.getSeverityFilter());
      SmtpServerSettings mailServerSettings = alertsConfig
          .getMailServer().toSmtpServerSettings();
      this.smtpAlerter.set(new EmailAlerter(mailServerSettings,
          sendSettings, standardAlertTags()));
      this.eventBus.register(this.smtpAlerter.get());
    }
View Full Code Here


     *
     * @throws CloudAdapterException
     */
    public void validate() throws CloudAdapterException {
      try {
        SmtpServerSettings settings = new SmtpServerSettings(
            getSmtpHost(), getSmtpPort(), getAuthentication(),
            isUseSsl());
        settings.validate();
      } catch (Exception e) {
        throw new CloudAdapterException(format(
            "failed to validate mailServerSettings: %s",
            e.getMessage()), e);
      }
View Full Code Here

     * Convert to {@link SmtpServerSettings}.
     *
     * @return
     */
    public SmtpServerSettings toSmtpServerSettings() {
      return new SmtpServerSettings(getSmtpHost(), getSmtpPort(),
          getAuthentication(), isUseSsl());
    }
View Full Code Here

TOP

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

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.