Gmail wraps certain HTML elements in a class called im

后端 未结 9 2365
醉梦人生
醉梦人生 2021-02-02 05:38

I have been testing out an HTML e-mail process I\'ve created recently. But as of lately, when I open the e-mail in Gmail, I\'m noticing that certain elements are wrapped in a c

9条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 06:11

    Inside my main table I created, as the last child add:

    1

    and the number 1 increments each time. I am generating the content with js using a template string

    `
    ${new Date().toString()}
    `

    You will also need to add style="color:#000;" to the parent. This will prevent the entire email as showing as quoted, and hence not color the text with the .im class

提交回复
热议问题