Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3034 Ansichten

How can I send the product image to email?


I'm using

<img src="/web/image/product.product/${orderpoint.product_id.id}/image_128" style="width:50px;height: 50px; object-fit: contain;" alt="Product image"/>


I can see the image in the preview of the email template but when I received in on my Gmail it is displaying the default camera image.


Please help

Avatar
Verwerfen
Beste Antwort

Hi

Please try to use this code:

<img t-attf-src="/web/image/product.product/{{ line.product_id.id }}/image_128" style="width: 100px; height: 100px; object-fit: contain;" alt="Product image"></img>

In this case,  if you add the proper path for the image file we can directly send it through the email

Hope it helps

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 25
2316
1
Mai 21
7005
1
Mai 20
3549
0
März 20
3575
1
Mai 19
4935