Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6420 มุมมอง

Hi everyone,


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[0].signature_logo or ''
if signature_logo:
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,


Selverine

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Selverine,

You must add this binary data into an HTML tag. Also, the plaintext should be False, try by it.

So, singature_add  = '<br />&lt;img src="data:image/jpg;base64, %s">  % (singature_logo)

Then,

body_html = tools.append_content_to_html(body_html, signature_add,.....)

Hope this helps.

Thanks.

อวตาร
ละทิ้ง
ผู้เขียน

Hi, Thank you for your help. It doesn't consider it as HTML tag, so I have:
<img src="data:image/jpg;base64, %R0lGODlhEgIOAfcAAMOuI9O+NamZKW92L8uyFLu... Inside my email. Is it a problem of tools.append_content_to_html you think? Thank you a lot for your help. Selverine PS: Do you provide helps for developer too? My ERP is quite ready but I have few questions like this one ( You will be paid for sure).

What error do you get? Selverine, yes we do! Reach us on contact@serpentcs.com. Thanks.

Selverine, did you manage to get it done?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
4409
0
ก.พ. 25
1610
4
ส.ค. 24
8897
Company Logo not showing up on email แก้ไขแล้ว
2
เม.ย. 24
4575
1
ธ.ค. 23
4007