Skip to Content
मेन्यू
This question has been flagged
3 Replies
19423 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
फ़र॰ 24
2929
1
जुल॰ 23
3837
1
फ़र॰ 22
6535
0
अग॰ 21
2790
3
अग॰ 20
6949