1 Answer
- Newest
- Most votes
- Most comments
0
Templates are managed via API call. The following page covers setup and use of templates. https://docs.aws.amazon.com/ses/latest/dg/send-personalized-email-api.html
You specify the template by name, specifically via "Template": "MyTemplate",
when creating the email JSON file such as the following.
{
"Source":"Mary Major <mary.major@example.com>",
"Template": "MyTemplate",
"ConfigurationSetName": "ConfigSet",
"Destination": {
"ToAddresses": [ "alejandro.rosalez@example.com"
]
},
"TemplateData": "{ \"name\":\"Alejandro\", \"favoriteanimal\": \"alligator\" }"
}
To send the email call the API and reference your prepared JSON file as below.
aws ses send-templated-email --cli-input-json file://myemail.json
Hope this helps.
Relevant content
- asked a year ago
- asked 8 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
We plan to use Amazon SES to send emails directly from our ERP package due to the large volume of emails being sent, unfortunately our ERP package does not support API calls. Is there a way to create a footer with our company details in Amazon SES other than via an API call?
No, the only option for templates is the above API call.