Package org.sonatype.micromailer

Examples of org.sonatype.micromailer.Address


              settings.setUsername("");
            }
            getNexusEmailer().setSMTPUsername(settings.getUsername());

            getNexusEmailer().setSMTPSystemEmailAddress(
                new Address(settings.getSystemEmailAddress().trim()));
          }

          if (resource.getGlobalConnectionSettings() != null) {
            RemoteConnectionSettings s = resource.getGlobalConnectionSettings();
View Full Code Here


      body.append("Stack trace: ").append("\n").append(sw.toString());
    }

    MailRequest request = nexusEmailer.getDefaultMailRequest("Nexus: Task execution failure", body.toString());

    request.getToAddresses().add(new Address(email));

    nexusEmailer.sendMail(request);
  }
View Full Code Here

    emailerConfiguration.setTls(config.isTlsEnabled());

    emailer.configure(emailerConfiguration);

    MailRequest request = new MailRequest(NEXUS_MAIL_ID, DefaultMailType.DEFAULT_TYPE_ID);
    request.setFrom(new Address(config.getSystemEmailAddress(), "Nexus Repository Manager"));
    request.getToAddresses().add(new Address(email));
    request.getBodyContext().put(DefaultMailType.SUBJECT_KEY, "Nexus: SMTP Configuration validation.");

    StringBuilder body = new StringBuilder();
    body.append("Your current SMTP configuration is valid!");
View Full Code Here

    body.append(userid);
    body.append(" has been created.  Another email will be sent shortly containing your password.");

    MailRequest request = nexusEmailer.getDefaultMailRequest("Nexus: New user account created.", body.toString());

    request.getToAddresses().add(new Address(email));

    nexusEmailer.sendMail(request);

    body = new StringBuilder();
    body.append("Your new password is ");
    body.append(password);

    request = nexusEmailer.getDefaultMailRequest("Nexus: New user account created.", body.toString());

    request.getToAddresses().add(new Address(email));

    nexusEmailer.sendMail(request);
  }
View Full Code Here

      body.append("\"");
    }

    MailRequest request = nexusEmailer.getDefaultMailRequest("Nexus: User account notification.", body.toString());

    request.getToAddresses().add(new Address(email));

    nexusEmailer.sendMail(request);
  }
View Full Code Here

    body.append("Your password has been reset.  Your new password is: ");
    body.append(password);

    MailRequest request = nexusEmailer.getDefaultMailRequest("Nexus: User account notification.", body.toString());

    request.getToAddresses().add(new Address(email));

    nexusEmailer.sendMail(request);
  }
View Full Code Here

    getCurrentConfiguration(true).setPassword(password);
  }

  @Override
  public Address getSMTPSystemEmailAddress() {
    return new Address(getCurrentConfiguration(false).getSystemEmailAddress(), NEXUS_SENDER_NAME);
  }
View Full Code Here

    }

    final MailRequest request = //
    nexusEmailer.getDefaultMailRequest(subject, message);

    request.getToAddresses().add(new Address(email));

    /** asynchronous */
    nexusEmailer.sendMail(request);

  }
 
View Full Code Here

      final String message) {

    final MailRequest request = //
    nexusEmailer.getDefaultMailRequest(subject, message);

    request.getToAddresses().add(new Address(email));

    final MailRequestStatus status = nexusEmailer.sendMail(request);

    if (status.isSent()) {
      return;
View Full Code Here

    }

    final MailRequest request = //
    nexusEmailer.getDefaultMailRequest(subject, message);

    request.getToAddresses().add(new Address(email));

    final MailRequestStatus status = nexusEmailer.sendMail(request);

    if (status.isSent()) {
      return;
View Full Code Here

TOP

Related Classes of org.sonatype.micromailer.Address

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.