I'm trying to figure out how to send cognito sign-in verification email:
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:
<img>
tagI tried (1) and it works for Thunderbird email client, but not for Gmail.
Is there a way to send cognito verification email with image?
I see that you are looking to add your company logo in the Cognito sign-in verification email. I recently did the same thing. I tried to use base64 encoded image but the encoded value was pretty big and it's hard to maintain that.
However, the simpler way would be to store the image in online storage and use the image link for img src
.
<a href='https://your_company_address.com'><img src="https://s3bucket_folder.s3.amazonaws.com/uploads/your_company_log.png" width= "40%" align= "center"/></a>
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With