Package com.amazonaws.services.simpleemail

Examples of com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient


                : createSESClient();
    }

    private AmazonSimpleEmailService createSESClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSimpleEmailService client = new AmazonSimpleEmailServiceClient(credentials);
        if (configuration.getAmazonSESEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSESEndpoint());
        }
        configuration.setAmazonSESClient(client);
        return client;
    }
View Full Code Here


                : createSESClient();
    }

    private AmazonSimpleEmailService createSESClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSimpleEmailService client = new AmazonSimpleEmailServiceClient(credentials);
        if (configuration.getAmazonSESEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSESEndpoint());
        }
        configuration.setAmazonSESClient(client);
        return client;
    }
View Full Code Here

    Content subject = new Content().withCharset("UTF-8").withData(action.getEmailSubject());
    sendEmailRequest.setMessage(new Message(subject, body));

    AWSCredentials awsCredentials = new BasicAWSCredentials(config.getAccessKeyId(), config.getSecretKey());
    new AmazonSimpleEmailServiceClient(awsCredentials).sendEmail(sendEmailRequest);

    return apiRequest.processed(apiMessage);
  }
View Full Code Here

    Content subject = new Content().withCharset("UTF-8").withData(action.getEmailSubject());
    sendEmailRequest.setMessage(new Message(subject, body));

    AWSCredentials awsCredentials = new BasicAWSCredentials(config.getAccessKeyId(), config.getSecretKey());
    new AmazonSimpleEmailServiceClient(awsCredentials).sendEmail(sendEmailRequest);

    return apiRequest.processed(apiMessage);
  }
View Full Code Here

      Content subject = new Content().withCharset("UTF-8").withData("New Story for " + userName);
      sendEmailRequest.setMessage(new Message(subject, body));

      AWSCredentials awsCredentials = new BasicAWSCredentials(config.getAccessKeyId(), config.getSecretKey());
      new AmazonSimpleEmailServiceClient(awsCredentials).sendEmail(sendEmailRequest);

    } catch (Throwable e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    body.withText(new Content().withCharset("UTF-8").withData(action.getMessage()));

    sendEmailRequest.setMessage(new Message(subject, body));

    AWSCredentials awsCredentials = new BasicAWSCredentials(config.getAccessKeyId(), config.getSecretKey());
    new AmazonSimpleEmailServiceClient(awsCredentials).sendEmail(sendEmailRequest);

    return apiRequest.processed(apiMessage);
  }
View Full Code Here

        return sesClient;
    }

    private AmazonSimpleEmailService createSESClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSimpleEmailService client = new AmazonSimpleEmailServiceClient(credentials);
        return client;
    }
View Full Code Here

                        "location (~/.aws/credentials), and is in valid format.",
                        e);
            }

            // Instantiate an Amazon SES client, which will make the service call with the supplied AWS credentials.
            AmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(credentials);

            // Choose the AWS region of the Amazon SES endpoint you want to connect to. Note that your production
            // access status, sending limits, and Amazon SES identity-related settings are specific to a given
            // AWS region, so be sure to select an AWS region in which you set up Amazon SES. Here, we are using
            // the US East (N. Virginia) region. Examples of other regions that Amazon SES supports are US_WEST_2
            // and EU_WEST_1. For a complete list, see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html
            Region REGION = Region.getRegion(Regions.US_EAST_1);
            client.setRegion(REGION);

            // Send the email.
            client.sendEmail(request);
            System.out.println("Email sent!");

        } catch (Exception ex) {
            System.out.println("The email was not sent.");
            System.out.println("Error message: " + ex.getMessage());
View Full Code Here

    public BasicChaosMonkeyContext() {
        super("simianarmy.properties", "client.properties", "chaos.properties");
        setChaosCrawler(new ASGChaosCrawler(awsClient()));
        setChaosInstanceSelector(new BasicChaosInstanceSelector());
        MonkeyConfiguration cfg = configuration();
        setChaosEmailNotifier(new BasicChaosEmailNotifier(cfg, new AmazonSimpleEmailServiceClient(), null));
    }
View Full Code Here

       
        createClient(region());
        regionToAwsClient.put(region(), awsClient());

        clusterCrawler = new AWSClusterCrawler(regionToAwsClient, configuration());
        sesClient = new AmazonSimpleEmailServiceClient();
        defaultEmail = configuration().getStrOrElse("simianarmy.conformity.notification.defaultEmail", null);
        ccEmails = StringUtils.split(
                configuration().getStrOrElse("simianarmy.conformity.notification.ccEmails", ""), ",");
        sourceEmail = configuration().getStrOrElse("simianarmy.conformity.notification.sourceEmail", null);
        conformityEmailBuilder = new BasicConformityEmailBuilder();
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.