Package com.amazonaws.services.simpleemail

Examples of com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient


        Set<String> enabledResourceSet = getEnabledResourceSet();

        janitorResourceTracker = new SimpleDBJanitorResourceTracker(awsClient(), resourceDomain);

        janitorEmailBuilder = new BasicJanitorEmailBuilder();
        sesClient = new AmazonSimpleEmailServiceClient();
        defaultEmail = configuration().getStrOrElse("simianarmy.janitor.notification.defaultEmail", "");
        ccEmails = StringUtils.split(
                configuration().getStrOrElse("simianarmy.janitor.notification.ccEmails", ""), ",");
        sourceEmail = configuration().getStrOrElse("simianarmy.janitor.notification.sourceEmail", "");
        ownerEmailDomain = configuration().getStrOrElse("simianarmy.janitor.notification.ownerEmailDomain", "");
View Full Code Here


  /**
   * No-args constructor
   */
  public AWSEmailer() {
    sesclient = new AmazonSimpleEmailServiceClient(
        new BasicAWSCredentials(Config.AWS_ACCESSKEY, Config.AWS_SECRETKEY));
  }
View Full Code Here

  public AmazonSESMailer(Environment env) throws IOException {
    this.env = env;
    InputStream resource = AmazonSESMailer.class
        .getResourceAsStream("/AwsCredentials.properties");
    PropertiesCredentials credentials = new PropertiesCredentials(resource);
    this.client = new AmazonSimpleEmailServiceClient(credentials);
    Properties props = new Properties();
    props.setProperty("mail.transport.protocol", "aws");
    props.setProperty("mail.aws.user", credentials.getAWSAccessKeyId());
    props.setProperty("mail.aws.password", credentials.getAWSSecretKey());
    this.session = Session.getInstance(props);
View Full Code Here

    }

    @Override
    public final void afterPropertiesSet() {
        final AWSCredentials credentials = new BasicAWSCredentials(env.getProperty("cloud.aws.accessKey"), env.getProperty("cloud.aws.secretKey"));
        emailClient = new AmazonSimpleEmailServiceClient(credentials);
    }
View Full Code Here

  public AmazonSESMailer(Environment env) throws IOException {
    this.env = env;
    InputStream resource = AmazonSESMailer.class
        .getResourceAsStream("/AwsCredentials.properties");
    PropertiesCredentials credentials = new PropertiesCredentials(resource);
    this.client = new AmazonSimpleEmailServiceClient(credentials);
    Properties props = new Properties();
    props.setProperty("mail.transport.protocol", "aws");
    props.setProperty("mail.aws.user", credentials.getAWSAccessKeyId());
    props.setProperty("mail.aws.password", credentials.getAWSSecretKey());
    this.session = Session.getInstance(props);
View Full Code Here

  public AmazonSESMailer(Environment env) throws IOException {
    this.env = env;
    InputStream resource = AmazonSESMailer.class
        .getResourceAsStream("/AwsCredentials.properties");
    PropertiesCredentials credentials = new PropertiesCredentials(resource);
    this.client = new AmazonSimpleEmailServiceClient(credentials);
    Properties props = new Properties();
    props.setProperty("mail.transport.protocol", "aws");
    props.setProperty("mail.aws.user", credentials.getAWSAccessKeyId());
    props.setProperty("mail.aws.password", credentials.getAWSSecretKey());
    this.session = Session.getInstance(props);
View Full Code Here

  public AmazonSESMailer(Environment env) throws IOException {
    this.env = env;
    InputStream resource = AmazonSESMailer.class
        .getResourceAsStream("/AwsCredentials.properties");
    PropertiesCredentials credentials = new PropertiesCredentials(resource);
    this.client = new AmazonSimpleEmailServiceClient(credentials);
    Properties props = new Properties();
    props.setProperty("mail.transport.protocol", "aws");
    props.setProperty("mail.aws.user", credentials.getAWSAccessKeyId());
    props.setProperty("mail.aws.password", credentials.getAWSSecretKey());
    this.session = Session.getInstance(props);
View Full Code Here

  public AmazonSESMailer(Environment env) throws IOException {
    this.env = env;
    InputStream resource = AmazonSESMailer.class
        .getResourceAsStream("/AwsCredentials.properties");
    PropertiesCredentials credentials = new PropertiesCredentials(resource);
    this.client = new AmazonSimpleEmailServiceClient(credentials);
    Properties props = new Properties();
    props.setProperty("mail.transport.protocol", "aws");
    props.setProperty("mail.aws.user", credentials.getAWSAccessKeyId());
    props.setProperty("mail.aws.password", credentials.getAWSSecretKey());
    this.session = Session.getInstance(props);
View Full Code Here

            request.withSource(fromEmail);
            List<String> emails = Lists.newArrayList(alertEmails.split(","));
            request.withDestination(new Destination(emails));
            request.withMessage(new Message(new Content(subject), new Body().withHtml(new Content(body.toString()))));

            AmazonSimpleEmailServiceClient emailService = AwsUtils.getAmazonSimpleEmailServiceClient();
            try {
                emailService.sendEmail(request);
                updateLastAlertMillis(endMilli);
                logger.info("updateLastAlertMillis " + endMilli);
            }
            catch (Exception e) {
                logger.error("Error in sending alert emails", e);
View Full Code Here

    public synchronized void trigger(boolean test) {

        try {
            headerNote = getHeaderNote();
            throughputMetrics = getThroughputMetrics();
            AmazonSimpleEmailServiceClient emailService = AwsUtils.getAmazonSimpleEmailServiceClient();
            Map<String, ApplicationGroup> appgroups = applicationGroupService.getApplicationGroups();
            Map<String, List<ApplicationGroup>> appgroupsByEmail = collectEmails(appgroups);

            for (String email: appgroupsByEmail.keySet()) {
                try {
View Full Code Here

TOP

Related Classes of com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient

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.