Gmail wraps certain HTML elements in a class called im

后端 未结 9 2145
醉梦人生
醉梦人生 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:01

    Gmail seems to think that you are quoting other emails in a conversation and so is wrapping div.im around the sections of your code that it thinks are previous bits in a conversation.

    This might happen if your code has a TABLE with more than one TR. To get around this, rather than several TRs in one TABLE, use several TABLEs with one TR in each.

    This might also happen if you have multiple subject lines that are the same, causing Gmail to think this is a conversation. You can fix this by making each subject line unique.

提交回复
热议问题