How to add unsubscribe url to email?

0

Hello!
I have read documentation about unsubscribe https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html
Domain verified.
But I don't understand, how to add unsubscribe url to email' template.
When I add {{amazonSESUnsubscribeUrl}} to template, I got "rendering failure" error.

aws ses send-templated-email --cli-input-json file://email.json
aws ses send-bulk-templated-email --cli-input-json file://emails.json

Please, help me!

Tatiana
已提问 3 年前2713 查看次数
2 回答
0

I used sesev2 instead of ses and it works.
Here is another JSON file format like this: https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
aws sesv2 send-email --cli-input-json file://email.json

Tatiana
已回答 3 年前
0

You can also add it to the payload if you're using the APIs:

"Body": { "Html": { "Charset": "UTF-8", "Data": "<html><body>{{ses:openTracker}} HTML BODY {{amazonSESUnsubscribeUrl}}</body></html>" }

AWS
bruno_g
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则