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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠