I'm trying to figure out how to send cognito sign-in verification email:
- in the user preferred language
- in HTML with images (such as the company logo).
For the first one, I found this question and the answer suggests using Lambda triggers with custom attribute for language selection. The solution looks promising and I will definitely give it a try.
For the second one including image in email, I found base64 encoded images in email signatures which suggests two ways:
- embed image using data URI within the
<img>tag - embed image as attachment.
I tried (1) and it works for Thunderbird email client, but not for Gmail.
Is there a way to send cognito verification email with image?