Gmail shows download icon on images of HTML Email

后端 未结 8 1120
礼貌的吻别
礼貌的吻别 2021-02-14 02:07

We have a Html Builder, that allows you to create responsive html for emails. We are using a third party engine to send the emails in bulk. The problem is, when email is being o

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-14 02:19

    As @Pebbs explained above, Gmail appears to detect images within certain size constraints as downloadable attachments. To circumvent this, what worked for me was using the "background" attribute to display the image within a tag. This effectively makes Gmail perceive the image as a background image, rather than as a potentially downloadable . So for example, within your code instead of the following:

    
    Your Image
    
    

    Use:

    
    
    

    Note that the VML in between the s might be needed for older email clients to render the image properly.

提交回复
热议问题