send templated email ses code example
Example 1: aws ses email template
{
"Source": "[email protected]",
"Template": "MyTemplate",
"Destination": {
"ToAddresses": [ "[email protected]" ]
},
"TemplateData": "{ \"name\":\"Alejandro\", \"favoriteanimal\": \"zebra\" }"
}
Example 2: aws ses email template
{
"Template": {
"TemplateName": "MyTemplate",
"SubjectPart": "Greetings, {{name}}!",
"TextPart": "Dear {{name}},\r\nYour favorite animal is {{favoriteanimal}}.",
"HtmlPart": "Hello {{name}}
Your favorite animal is {{favoriteanimal}}.
"
}
}