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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ