Amazon SES: SMTP interface to send email based on template

0

Hello,

Amazon SES: is is possible to send emails via SMTP interface leveraging SES email templates? If so, I would appreciate some links where I can find more information how to do it. Of course, it is possible to send templated emails using SDK/CLI, the question is how to do it using SMTP interface.

Thanks, Mariusz

AWS
Mariusz
gefragt vor 2 Jahren762 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Hi, @Mariusz

You cannot render the template through the SMTP interface.
You need to do send-templated-email through the AWS SDK / AWS API.

However, you can also send the rendered body by SMTP by rendering from the template using test-render-template in the AWS SDK before sending by SMTP.
However, there seems to be a rate limit of one per second.

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ses/test-render-template.html

Alternatively, you can send it to another alternative destination with SES + SMTP as shown below, and convert it to template rendering transmission with AWS SDK by custom processing such as Lambda.

https://dev.classmethod.jp/articles/ses-lambda-mail-transfer/

profile picture
EXPERTE
iwasa
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

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