How to get rid of "Show trimmed content" in GMail HTML emails?
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.
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.
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)
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.
If you cannot change your subject you can surely go for the optimization of HTML mailers.
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).
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.