I would like to know if it is possible to add a logo inside the email signature?
To do it, I created a field to add a picture and I try to add my logo inside the email, but it is not working.
I can only see the encoded code but not the picture (R0lGODlhEgIOAfcAAMOuI9O+NamZKW92L8uyFLu...)
signature_logo =msg.author_id.user_ids.signature_logo or ''
body_html = tools.append_content_to_html(body_html, signature_logo, plaintext=True, container_tag='div')
Somone has an idea please?
Thank you a lot,
You must add this binary data into an HTML tag. Also, the plaintext should be False, try by it.
So, singature_add = '<br /><img src="data:image/jpg;base64, %s"> % (singature_logo)
body_html = tools.append_content_to_html(body_html, signature_add,.....)
Hope this helps.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/18/15, 10:38 AM|
|Seen: 630 times|
|Last updated: 7/19/15, 1:32 AM|