Email best practice

Gmail truncation – what gets the chop?

It’s a well-known fact that Gmail truncates emails over a certain size. At least I think it’s well-known. There are still plenty of brands out there sending big bulky emails that exceed the limit. Here’s what happens when they do:

Example of truncation message in Gmail

Yes, the missing portion is technically still available. Via a click. But let’s be real – who is going to do that?

Keep it under 100

If your email code exceeds around 100KB, you’ve hit the limit. That means the code content of your HTML file only. Images are a separate entity and not a factor in truncation.

Email code is responsible for:

  • General template setup and fixes
  • HTML elements and their attributes
  • CSS, both inline and in the head of your document
  • Text content
  • Code indentation

But in practical terms, we can consider that 100KB to be shared between just two things:

  • Content
  • Design

A quick fix

First thing first – you probably don’t want to sacrifice either content or design, and you might not have to. Stripping indentations can make a significant saving in code, and is often sufficient to pull a large email back into safety.

Before and after example of code with indentations being removed, resulting in an 18.4% saving in file size.

It’s worth pointing out that this technique doesn’t work in all email platforms. Some of them will reformat the code, thus restoring the indentations, and you’re back to square one. Thankfully most don’t do that.

If your email is still over the limit, you might then consider looking for sections of your email that could be coded a little more efficiently. That will shave a few bytes here and there. But frankly, unless your code was terribly bloated in the first place, the savings are going to be negligible. You’re going to have to make a tougher decision.

What matters more?

You have lots of stuff to offer your customer, and you want your customer to see it. And you want it to look pretty too. That’s a problem, because:

lots of content x complex design = too much code

Something has to go. There are a couple of questions to help determine the next step.

Is your design a little too much?

I’ve personally been involved in many a desperate battle to squeeze a marketing email under the limit. And every time I wonder why are we having this fight? Often the problem could be solved by reining in the design to a more medium-appropriate form.

There’s nothing wrong with a good-looking email of course. It certainly doesn’t need to be plain. But there is a point at which the design becomes needlessly elaborate, especially in this medium that requires so many tricks. It’s worth taking a step back and re-examining the design:

  • Is it fancy for the sake of being fancy?
  • Are links applied to every square inch? Those add up quickly.
  • Does it communicate what it needs to?

Are you showing the right content to the right people?

We established already that you have a lot of content that you’d like to promote. Products for every need. Juicy offers aplenty. You name it.

But does every customer need to see all of it? The answer is no. They’re probably not going to peruse your email with the same level of attention with which you created it.

Targeted, relevant content is so much better. That keeps your email focused, without the bloated file size.

A necessary nuisance

Email truncation can feel like a source of frustration. Why would someone interfere with our emails like this!?

But that’s the wrong way to look at it. It provides a benefit to the customer. And really it provides a benefit to us marketers by reminding us about best practice.

So, what gets the chop? Bad practice. And who’d want to keep that?

Email best practice

Three content lessons from Gmail’s email sender guidelines

Google is tightening up the rules from early 2024. If you want your emails to land in the inbox and maintain a good sender reputation, you’d better follow them!

We recently covered the authentication aspects of their acronym-laden email sender guidelines. Within the same document are a few stipulations regarding the actual email content. But don’t worry – Google isn’t really interfering with what you put in your mailings, but instead reminding everyone about best practice that should already be followed.

Take an objective approach to your subject

Email sender guidelines: Message subjects should be accurate and not misleading.

Misrepresenting your message content is obviously bad. But so too is vagueness. Baiting customers with promises of tempting but unspecified offers may attract some curious openers. What’s the point however if those same openers walk straight back out the door when that offer turns out to be a disappointment? It’s better to make your message clear from the word go.

Inboxes are saturated with with emojis, gimmicky copywriting, and other look-at-me tricks. Perhaps the email that stands out the most will be the one that respects the reader and talks to them straight.

Have a think about your links

Email sender guidelines: Web links in the message body should be visible and easy to understand. Recipients should know what to expect when they click a link.

Linked elements in emails should be easy to spot, easy to click, and their purpose crystal-clear. Should is probably the operative word in that sentence. All too often, emails have fallen victim to link frenzy. It’s not uncommon to see confusingly multi-linked features, often to the point of being a landing page lottery.

Going wild with links may succeed in funneling more (confused) customers to your website. But if they’ve arrived on an unexpected page, they won’t be buying anything. Keep it simple and clear instead.

What are you hiding?

Email sender guidelines: Don’t use HTML and CSS to hide content in your messages. Hiding content might cause messages to be marked as spam.

Do you code emails with separate desktop and mobile images, or other such split content? That means lots of hidden elements. Apart from being a clunky pseudo-responsive development technique, it’s also a potential spam filter trigger.

Of course, there are other uses for hidden content such as ‘preheaders’ (actually a message preview) and fallback content for interactivity. But if hidden content of any kind is frowned upon and we still find the need to include it in our emails, it raises a question: are we using the medium properly?

Stricter rules… for a better inbox

As harsh as it sounds, the email marketing sent by some otherwise legitimate companies is ethically questionable and not a million miles away from being spam. Google and other companies are taking steps to combat bad email practice – and improve the medium for everyone.

Email best practice

Updates from Gmail and Yahoo: DMARC

Gmail and Yahoo have both recently announced significant changes that will impact email senders, emphasising the need for enhanced authentication, decreased spam rates, and streamlined unsubscribe processes. As we delve into the upcoming modifications, it’s crucial for UK-based agencies to stay abreast of these alterations to ensure optimal email deliverability.

Authentication requirements

Gmail and Yahoo are tightening their grip on email authentication, requiring senders to configure both SPF and DKIM. This dynamic duo not only fortifies against abuse but sets the stage for the implementation of DMARC. For bulk senders exceeding 5,000 messages daily to Gmail, a DMARC record becomes mandatory, signalling a move towards a more secure email ecosystem.

It’s imperative to assess your current authentication practices and engage with your ESP to make necessary adjustments. The introduction of DMARC provides a strategic approach, beginning with a “none” policy before progressing to enforcement, a nuanced tactic to ensure compliance without disrupting existing email programs.

Spam complaint rate threshold

Sending wanted mail is paramount, and consent plays a pivotal role in user interactions. Gmail, in particular, has set a ceiling of 0.3% for spam complaint rates, signalling a tiered approach to consequences. Monitoring complaint rates through platforms like Google Postmaster Tools and Yahoo’s CFL provides valuable insights into program performance, enabling proactive adjustments to avoid inbox issues.

List-Unsubscribe

Simplifying the unsubscribe process is a key strategy to combat complaints. The introduction of List-Unsubscribe functionalities, including a one-click option, aligns with the overarching theme of making email management seamless for users. Notably, unsubscribes must be processed within two days, surpassing the CAN-SPAM requirement of 10 days, showcasing a commitment to exceeding legal standards.

What’s new?

While these standards have existed for years, the enforcement of these practices is a response to the persistent challenge of non-compliance. By implementing stringent measures, email providers aim to incentivise adherence to best practices, ensuring that non-delivered emails do not compromise revenue, awareness, or loyalty.

Looking ahead

These changes from Gmail and Yahoo are just the beginning. Expect similar stringent requirements from other providers as the industry unifies to create a robust defence against spam. As we approach February 2024, Gmail and Yahoo are cognisant of the need for a gradual transition, allowing senders to adapt without facing abrupt disruptions.

Conclusion

Adapting to these changes is essential for maintaining a successful email program. Our team is here to support you through this transition. For more details on the new requirements, visit Gmail’s Email Sender Guidelines page or consult Yahoo’s Sender Best Practices. Remember, you’re not alone in this journey, and together we can navigate the evolving email landscape. Blame the bad guys – spammers ruin everything!

Email coding

Cut and waste: is email clipping ruining your mailings?

Websites are displayed in web browsers. Browsers, for the most part, agree on how things should work. There’s a high degree of standardisation.

Emails are displayed in email clients. They do whatever the hell they want.

As email developers we need to contend with patchy support for modern web technologies and a shifting landscape of rendering quirks. And then there’s the matter of email clipping. That’s a nice way of saying your email could potentially be chopped in half.

The root cause of email clipping

Gmail has a 102 kilobyte limit on email code. Let’s round that to a neat 100KB. We’re not talking about images – they’re a separate entity. The 100KB cap applies to the HTML at the core of your email.

Exceed the limit and your email will be unceremoniously sheared. It doesn’t matter if you’re using a desktop or mobile device, via the Gmail web page or the app. The same rule applies across the board.

I’ve knocked together a purposely code-heavy email to demonstrate this process in all its ugliness. Here’s how my mailing should look:

Image of demonstration email

There’s a significant amount of bloat in this email. That includes things like superfluous code, border effects, device-specific imagery, and a drop-down menu on mobile.

The result is a file weighing in at 120KB. In Gmail it renders up to a certain point and then… stops. This is as far as it gets:

Image of clipped email

And yes, there is a link to view the email online in its entirety but realistically who is going to press that? I wouldn’t. The damage is already done.

Apart from the obvious consequences of a broken email and wasted content, clipping can also result in the unsubscribe link and terms & conditions going missing. That’s a serious problem.

Let’s find out what we can do about it.

Accept the limit

This is step one. The limit exists and there’s no way to circumvent it.

We also cannot afford to ignore it. Gmail is the world’s second most popular email platform and accounts for a third of the market.

I think it’s important not to think of this restriction as a nuisance. Much better to regard it as a reminder to follow good practice. If your emails are being clipped, that’s your cue to reign in rambling marketing spiel or refine your code or declutter your design.

Respect the limit and your marketing emails may end up all the better for it.

Code efficiently

There’s a single top-level cause of email clipping: the file size is too big. This is caused by one or more of the following factors:

  • Excessive content
  • Excessive code
  • Complex design

Let’s focus on code for now. If an email is being clipped, it doesn’t necessarily mean that its code is bad. It may be error-free and email-friendly in the traditional sense. There’s just too much of it.

We should always strive to find the most efficient way to turn content into code. Some of the most helpful methods I’ve found are as follows:

  • Padding on table cells is well supported in email and makes for a lighter alternative to spacers.
  • Nested tables are intrinsic to email-coding, but it’s easy to get carried away. See if you can cut back.
  • Merge tables where possible. If you can add a row to an existing table rather than creating a new one, do it.
  • Be prepared to deviate from the design. A simplified email is eminently preferable to a truncated email.
  • Allow some leeway. If you’re scraping under the limit, remember that image references and tracked links could end up longer than they appear in your local files.
  • Know your templates. It’s worth reviewing what every piece of code actually does.

If you’re have truncation troubles, it’s not a battle that needs to be fought on a daily basis. Snippet-based development and a template library lets us record and re-use good code. Solve the problem, save the solution.

Show the right products to the right people

I wasn’t kidding when I suggested that Gmail’s code limit is a good thing. Sending huge mailings with lots of products and no personalisation is a haphazard and old-fashioned approach to email marketing. Please buy something, buy anything! A limit on file size discourages that.

Tailored email marketing via strategic segmentation and data-fuelled product recommendations is the way to go. It’s easy to treat personalised content as an afterthought, but personalisation deserves to be at the heart of our marketing programmes. Modern email tools and technologies make that possible.

With a mere 100KB to work with, code is precious. Let’s not waste it on irrelevant content.

Redefine your design

If elaborate design is the root cause of your email clipping woes, then it’s time to go back to the drawing board. As dramatic as it sounds, it can be helpful to re-assess what email actually is.

Consider these questions:

Simplified design means a slimmer file. I’d wager that customers are a lot more interested in product and price than borders and background effects. And if you pit fancy design against an email that actually works, there’s no contest.

Out with the indentations

In the real world, this fix is likely to be the first course of action. It can be extremely effective and takes seconds to implement. But I haven’t listed it first here, as it doesn’t reflect the same spirit of best practice as the other improvements above.

Indentations in code are useful… to humans. A screenful of HTML or CSS becomes a lot more readable when it’s neatly formatted.

Image of some HTML code with indentations

But these indentations serve no purpose for a computer, and they account for a surprising chunk of your overall file size. Stripping them is often all that’s needed to save an email from clipping.

Image of some HTML code with no indentations

The scale of this kilobyte reduction is affected by various factors but it primarily depends on whether your indentations are tab-based or space-based. While tab-based reductions are relatively modest, space-based reductions hover around 20% in my tests. That’s a significant result for such a low-effort fix.

You don’t even need to lose your indentations forever – create a copy of your HTML file for uploading, and keep the original for editing.

Final cut

It’s time to take my Fauxrniture email and rescue it from Gmail’s axe. I don’t want to sacrifice content, so my focus is on improving code and dropping unnecessary extras.

There is huge scope for code refactoring. Several blocks of HTML can be merged, dramatically reducing the overall file size. Plus that makes it even more readable for my human brain.

The application of links to every single paragraph is overkill. The drop-down menu is a gimmick. Alternative imagery for desktop and mobile serves no useful purpose. So we’re saying goodbye to all of those.

The code-based border effects on the main image come with a hefty kilobyte cost, so I’ll incorporate them into the JPEG directly instead.

And finally (although we’ve done enough already at this point) let’s get rid of the indentations for good measure.

The end result is a file that is half the size of the original. That’s so far into the safe zone that we can relax completely. And crucially, nothing of importance has been lost.

The lesson here is that a clip-proof email absolutely does not have to mean a short email. Code efficiently, design for email, and lose the fluff. Now you can concentrate on content creation rather than email truncation.