Auth0 Home Blog Docs

Email Templete change logo

auth0

#1

Hi Team,

I started customizing my verification email - using SMTP email provider.
One of the things I want to customize is the logo.
When receiving an email, some email clients have this “Download images” button you have to click and no images are presented unless you click it.
One way to bypass this annoyance (in a regular email) is attaching the images you want to display to the email itself (as file attachments) and referencing their source in the html as CID - ex:<img src="“cid:Logo.jpg”">.
Another way is to use inline base64 attachments, but most clients seem to block this apparently…

So, now for the questions.
Can I somehow use attachments in auth0 email templates to make the logo appear in all emails without clicking the “Download images” in the email client?
Is there another way (not attachments) to achieve the same?

Thanks


#2

I am pretty sure that there is no way to do attachments with the template. Doing attachments would require knowing the content-type header, which looks like:
Content-Type: multipart/mixed; boundary="------------5DCDC8D554E2B9E07145E50F"
And then using that boundary to create a raw body with attachment.
But templates cannot do that.

You can see this page:
https://support.mozilla.org/en-US/kb/remote-content-in-messages
where Thunderbird puts forth the justification for doing this behavior. Because it is a privacy issue, I don’t think it is going to be easy to get around. It might be easier to help users adjust the setting for your site.

John