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
gefragt vor 3 Jahren2713 Aufrufe
2 Antworten
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
beantwortet vor 3 Jahren
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen