Auth0 Home Blog Docs

How can I add images to email templates?

email
image

#1

How can I attached images to email templates?
we want to add the logo of our businesses and more images like github,medium,linkedin etc…

tried to add with base 64 within the html and upload it to public s3 bucket and no success so far.


#2

To keep email sizes under control (and play nice with email clients), you are probably better off with linked images (see https://sendgrid.com/blog/embedding-images-emails-facts/).
Either linked or inline, the img tag is used:

This is a linked image, taken from the built-in template:

<img src="https://cdn.auth0.com/styleguide/2.0.9/lib/logos/img/badge.png" width="50" alt="Your logo goes here" style="-ms-interpolation-mode: bicubic;border: 0;height: auto;line-height: 100%;outline: none;text-decoration: none;">

An inline image would look like this:

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAADSCAMAAABThmYtAAAAXVB">