- 新しい順
- 投票が多い順
- コメントが多い順
Hello. The RenderingFailure metric you're seeing in CloudWatch indicates that Amazon SES encountered an error when trying to render your email template. The error can be due to a variety of reasons, but since you specifically mentioned the inclusion of the {{amazonSESUnsubscribeUrl}} placeholder as the cause, it's a good place to start troubleshooting. Regards, Andrii
Ensure that the Source email (this.awsOptions.senderEmail) is verified in Amazon SES.
Ensure that the recipient email address is either verified (if you're in the Amazon SES sandbox environment) or is a valid email address (if you're in the production environment).
Make sure the template "TestWelcomeTemplate1" has been successfully created in SES and matches the JSON structure you provided.
Ensure that the contact list TestList and topic Subscription are both active and not in a failed or deleted state.
You're adding the unsubscribe URL in both the text and HTML versions of the email. There's nothing inherently wrong with that, but for the sake of debugging, you might want to test by including it in just one part (say, only the HTML version) to see if that makes any difference.
Occasionally, the manner in which the placeholders are positioned can cause issues. Although your placement seems correct, for debugging purposes, try to reduce any unnecessary whitespace or newline characters around the {{amazonSESUnsubscribeUrl}} placeholder.
Although it seems unrelated, sometimes the permissions of the IAM role/user might prevent certain functionalities. Ensure that the role/user has permissions to ses:SendTemplatedEmail, access to the specified contact list, and the topic.
Regards, Andrii
Thanks Andril,
As I mentioned the email is delivered when I remove {{amazonSESUnsubscribeUrl}} placeholder, so this almost clear the 1st, 2nd & 3rd point.
4th Point - I have verified this one.
5th & 6th Point - Triggered email again after updating the template:
{ "Template": { "TemplateName": "TestWelcomeTemplate1", "SubjectPart": "Tesr", "TextPart": "Dear {{name}} Today marks the end of your trial period ", "HtmlPart": "<html><p>Dear {{name}} Today marks the end of your trial period {{amazonSESUnsubscribeUrl}}</p></html>" } }
7th Point: I'm the one who created the contact list and the topic.
関連するコンテンツ
- AWS公式更新しました 7ヶ月前
- AWS公式更新しました 2年前
Here's the code snippet of my email service:
And here's the JSON of my email template:
Here's the JSON of my topic and contact list:
I've checked the AWS documentation and ensured that I'm using the {{amazonSESUnsubscribeUrl}} placeholder correctly. Furthermore, the ContactListName and TopicName in the ListManagementOptions are set up correctly in my AWS SES setup.
I would appreciate your assistance in identifying the cause of this