Skip to Content
Menu
This question has been flagged
3 Replies
19178 Views

How to add company logo to email templates? Thank you.

Avatar
Discard
Author

Hi, if I use ${object.company_id.logo} then the character ascii code of the logo image appears. How can I do to make the logo image appear instead? Thanks

<p><img src=" data:image/png;base64, ${object.company_id.logo}" height="100px" width="100px"/></p>

Best Answer

Gmail, and probably many other emails, do NOT support base64 images, you have to use a url, like:

https://your-website.com/web/image/res.company/${object.company_id.id}/logo?width=180" style="height: auto; width: 180px;"  alt="${object.company_id.name}"/>

Avatar
Discard
Best Answer

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 24
2582
1
Jul 23
3467
1
Feb 22
6215
0
Aug 21
2591
3
Aug 20
6557