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

1回答
1
承認された回答

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
エキスパート
iwasa
回答済み 2年前
profile picture
エキスパート
レビュー済み 1ヶ月前

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

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

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