跳至內容
選單
此問題已被標幟
1 回覆
2999 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
2239
1
5月 21
6956
1
5月 20
3518
0
3月 20
3544
1
5月 19
4905