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 Respostas
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
ESPECIALISTA
Parnab
respondido há 2 anos
0
Resposta aceita

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.

respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas