public void sendMail() { try { AmazonSimpleEmailService ses = new AmazonSimpleEmailServiceClient(new ClasspathPropertiesFileCredentialsProvider().getCredentials()); Region usEast1 = Region.getRegion(Regions.US_EAST_1); ses.setRegion(usEast1); SendEmailResult emailResult = ses.sendEmail(new SendEmailRequest("from@test.com", new Destination(Arrays .asList("to@test.com")), new Message(new Content("件名"), new Body( new Content("本文"))))); System.out.println(emailResult.toString()); } catch (Exception e) { } }
SendEmailResult でメール送信時のMessageIdが返ってきます。