How to get rid of "Show trimmed content" in GMail HTML emails?

75,278

Solution 1

I've just encountered this problem myself, and from my investigations it seems that GMail does indeed trim the content if it is similar to the preceding emails.

My solution is simply to insert the current time stamp at the end of every email:

[15:02:21 29/01/2013] End of message.

Solution 2

To prevent this in HTML emails I'm adding two invisible unique elements: in the beginning and at the end of the mail. Like this:

...

<body>
<!-- this ensures Gmail doesn't trim the email -->
<span style="opacity: 0"> {{ randomness }} </span>

...

<!-- this ensures Gmail doesn't trim the email -->
<span style="opacity: 0"> {{ randomness }} </span>
</body>

{{ randomness }} is being replaced by my templating engine with the value of Date.now() (I'm using node.js, could be anything producing unique output)

Solution 3

Voilà! Finally after long testing I have found a solution to this problem.

What Gmail does is it puts in the "Show Trimmed Content" option if the message is similar to previous ones, or the subject of the email appears as it is in the content of the email.

To avoid this, simply try inserting any randomly generated string inside your mail which will make your email messages different and will not let Gmail insert the Show Trimmed Content option.

Solution 4

If you cannot change your subject you can surely go for the optimization of HTML mailers.

  1. Because HTML file size allowed by Gmail is 102kb. If Gmail finds that your HTML file size is above 102kb then it will show message clipped at the bottom of your HTML mailer. File size is regardless of the image size which are included in the mailers(I am considering image link here).

  2. If there are many white spaces and carriage return in your HTML file. So best option is to inline your CSS using mail chimps inline CSS tool and then compressing your HTML file (Then are numerous HTML compressors available online). This 2 tricks should surely work in order to avoid your email has been clipped message.

For more reference can visit this link.

Solution 5

Settings --> General --> Conversation View --> Conversation View off

This will basically not group the emails plus won't trim the contents.

Share:
75,278
Munim
Author by

Munim

Web application engineer based in Mumbai, India.

Updated on July 08, 2022

Comments

  • Munim
    Munim almost 2 years

    I send a lot of HTML emails. The problem with GMail is, if there are more than one emails with the same subject, it hides some similar content and shows a "..." to show the "trimmed content". This screws up with my formatting.

    If changing the subject is not an option, is there is any way to avoid this behaviour?

    Edit: I should clarify that I programmatically send emails using Amazon SES from a php script. That is why I posted the question in Stack Overflow.

  • Munim
    Munim over 11 years
    Thanks for the tip. An easy and slightly elegant way to ensure that emails don't trim.
  • Munim
    Munim over 10 years
    That's interesting. It will be helpful if you have any source for this though.
  • Munim
    Munim over 10 years
    Ah.. You are talking about the "message clipped" notice. Not exactly the same as my question, but relevant anyway. Thanks.
  • thorne51
    thorne51 almost 9 years
    Would this work as well if you had that in between comments tags in your html <!-- [15:02:21 29/01/2013] end of message -->?
  • Shaiju T
    Shaiju T almost 9 years
    before sending auto mail, In mail footer i generated random alphanumeric strings in c# check this, hope helps someone.
  • Shezi
    Shezi about 8 years
    thats awesome tip doug
  • ginna
    ginna almost 8 years
    Excellent. Then use CSS to set the text's opacity to 0.
  • Amit Tomar
    Amit Tomar almost 8 years
    You can use CSS and change opacity to 0 for this drunken drawing of yours :p
  • Adam Reis
    Adam Reis over 7 years
    This has now turned worse, as Gmail will quote blocks from the middle of an email as well, including headers, if the content is repeating. So I've resorted to inserting random characters before every </p> closing tag, which seems to do the trick.
  • Kenmore
    Kenmore almost 6 years
    That's fine... but of course, this doesn't help a developer trying to make sure the emails you SEND don't do this. You can't ensure the end-user has this off.
  • Will Sheppard
    Will Sheppard over 5 years
    This is the actual answer for viewing gmail emails with the trimmed content feature turned off
  • Sõber
    Sõber over 4 years
    This is the best answer, as of 2019.
  • Mustafa
    Mustafa about 2 years
    android chrome browser gmail opacity not working
  • Mike Flynn
    Mike Flynn about 2 years
    This also uses it in the preheader text that looks awful.
  • AdamJones
    AdamJones about 2 years
    Just to confirm in case not obvious, this seems to work if the string is hidden as well. ie within an html comment. So this won't compromise the layout of your email in any way at all.