Friday, September 5, 2014

AWS SES Send HTML Email With Java API

It is not clear in the documentation whether it is possible to send a multi-part email with both Plain Text and HTML components via AWS SES.

I did a test and verified that it is supported in this way:
Body body = new Body();
Content textContent = new Content().withData("text content");
body.withText(textContent);
Content htmlContent = new Content().withData("html content");
body.withHtml(htmlContent);

The resulting email will be a multi-part email with both Plain Text and HTML components.

No comments:

Post a Comment