- Newest
- Most votes
- Most comments
Hello Charles, Amazon SES supports personalised templates that can be leveraged to construct a mailer body with the required compliance.
Link: https://docs.aws.amazon.com/ses/latest/dg/send-personalized-email-api.html
These templates follow the JSON nomenclature and can be created using CLI or AWS SDK.
## In the HTML segment you can create a footer ##
{
"Template": {
"TemplateName": "MyTemplate",
"SubjectPart": "Greetings, {{name}}!",
"HtmlPart": "<h1>Hello {{name}},</h1><p>Your favorite animal is {{favoriteanimal}}.</p>
<footer> <p>Author: Charles UK Emailer---UK
Companies Act -- Sample</p> <p>
<a href="mailto:hege@example.com">hege@example.com</a></p>
</footer>",
"TextPart": "Dear {{name}},\r\nYour favorite animal is {{favoriteanimal}}."
}
}
##Type the following command to create a new template using the CreateTemplate API operation:##
aws ses create-template --cli-input-json file://mytemplate.json
I hope this helps, You can create upto 2000+ templates with Amazon SES per Region.
Thanks.
Regards, Varun
Hi Charles,
On SES, you can use the policy-generator under the verified identities to ensure all outgoing emails use the same template. This policies can be further customised and mapped to a specific template. Amazon SES > Verified Identities > Authorization > Create / Generate Policy
https://docs.aws.amazon.com/ses/latest/dg/using-policy-generator.html
It'll be good to explore Pinpoint as well, will be interested in knowing the details on how you implemented the same use-case in there.
Thanks.
Relevant content
- asked 3 months ago
- Accepted Answerasked 3 years ago
- asked 9 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Sorry for the delay. I am currently only a weekender with AWS dev. I have reviewed the instructions you sent.
Thank you for providing them. However, I'm still a little confused.
While I can successfully send an email using the "aws ses send-bulk-templated-email" command with an uploaded template (using "file://mybulkemail.json"), I am unsure how to use the template when sending emails through SES verified emails using any other method.
Specifically, I want to ensure that any outgoing email from a verified email address using SES includes a footer. Although I can see the template in the SES console, I cannot find a way to attach it to the outgoing emails in the console.
P.S. I am also experimenting with achieving this using AWS Pinpoint, which seems like an obvious approach, but it requires some learning.
Many thanks.
Charles.