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
전문가
검토됨 한 달 전

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

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

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