Set headers when sending emails with Cognito

0

How can I set specific email headers when sending emails through cognito custom emails system? More precisely I'd like to set the 'X-Entity-Ref-ID' header to avoir threading in recipient inboxes.

CustomMessage lambdas has no header method in the response json CustomEmailSender could work but feels overkill.

Thanks

  • This is not implemented in the triggers unfortunately.

2回答
1

With Amazon Cognito, Custom message Lambda trigger, you can only set the following:

  • "smsMessage": "string",
  • "emailMessage": "string",
  • "emailSubject": "string"

You cannot set the email headers as of now. However using a different subject line may allow you to not group emails from being shown as a threads without using "X-Entity-Ref-ID".

AWS
エキスパート
Parnab
回答済み 2年前
0
承認された回答

So the only solution to this problem is to use a CustomEmailSender and add the header in that lambda. A lot more code to write to access SES but more control. A shame, access to settings headers on emails would simplify all this.

回答済み 2年前

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

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

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