Interactive emails must work for everybody — irrespective of which electronic mail shopper they use. That’s why we construct three variations of the identical electronic mail:
- AMP: Powered by AMP HTML, this model lets customers work together straight inside the e-mail — with issues like carousels, varieties, video games, or real-time updates. Supported by Gmail, Yahoo, and some others;
- kinetic: Constructed with HTML5 and CSS3, it affords a lighter type of interactivity — like exhibiting/hiding sections or supporting quizzes and polls. Works in Apple Mail, Samsung Mail, Thunderbird, and most trendy electronic mail purchasers;
- static fallback: A easy HTML model that exhibits textual content, photos, and hyperlinks solely. It’s the most secure model and works all over the place, together with Outlook.
This setup ensures that each recipient both enjoys the interactive expertise or, on the very least, sees a fallback with the core message. No person is not noted.
A minimum of we thought so…
The problem with partial assist of kinetic content material
We at all times assumed that if an electronic mail shopper helps kinetic content material, it could deal with every little thing inside it — buttons, toggles, varieties, and all. However throughout testing, we discovered that’s not at all times true.
Take iCloud Mail internet for instance. It seems to be prefer it helps kinetic emails — the design hundreds, and interactive components seem. However if you attempt to submit a type, nothing occurs. In distinction, Apple Mail handles every little thing as anticipated.
![]() |
|
Apple Mail _ Recipients see their reply was submitted
|
iCloud Mail (internet) _ We click on on the Submit button however nothing occurs
|
If that’s the case for iCloud, different purchasers may additionally have partial assist. That received us considering: How can we keep away from exhibiting a damaged interactive model — and as a substitute present a clear static fallback when wanted?
That’s the place issues get tough. Each the kinetic and fallback variations are constructed with HTML and share the identical MIME-type. So, in contrast to AMP (which has its personal MIME-type and falls again by itself), we will’t depend on computerized switching.
As an alternative, now we have to manually management which model is proven — utilizing CSS to cover or reveal content material based mostly on the e-mail shopper’s capabilities.
The best way to mix static and kinetic HTML in a single electronic mail part
Our purpose was to incorporate each variations in a single electronic mail part and show just one, relying on what the recipient’s electronic mail shopper helps. Whereas we usually consider the static model because the fallback, on this method, it’s the default. It’s proven when a shopper doesn’t assist CSS interactivity. The kinetic model is revealed provided that the e-mail shopper helps HTML5 and CSS3.
We management this utilizing class-based show guidelines and conditional feedback. Right here’s the essential construction:
A easy HTML for the textual content model
HTML for the interactive model
Key components of the code situations defined
- “Textual content model,” known as the static model above, positioned inside a . It’s proven by default and acts because the secure model when nothing else works;
- “HTML model” is positioned inside a
. This model stays hidden until the e-mail shopper can deal with interactivity by way of HTML5 and CSS3;
- the checkbox acts as a controller. With the assistance of CSS, it determines which model ought to be proven;
- the conditional feedback () are used to cover the kinetic model from Microsoft Outlook desktop purchasers, which may’t render it correctly;
- the mso-hide:all hides the content material from Outlook.com;
- show: none hides it in most trendy purchasers — till CSS guidelines say in any other case.
It’s vital that the , , and
components are positioned proper after one another, on the similar nesting degree. That’s as a result of the CSS selectors used to regulate visibility depend on this order (we’re utilizing sibling selectors like ~).Including kinds to toggle visibility
Now we outline the CSS that exhibits or hides every model based mostly on what the e-mail shopper helps:
What every half does
- the WebKit rule (@media display screen and (-webkit-min-device-pixel-ratio: 0)) targets Apple Mail, iOS Mail, and Samsung Mail. These purchasers can deal with HTML5 and CSS3 properly. So right here, we present the kinetic model and conceal the fallback. This additionally works in WebKit browsers like Chrome and Safari if the e-mail is opened in a browser preview;
- Outlook.com assist: The selectors like [owa] be sure that Outlook.com hides the kinetic block and exhibits the static fallback. [class~="x_container"], and [id~="x_fallback"] are used as a backup in case [owa] alone doesn’t work;
- Cellular Outlook: physique[data-outlook-cycle] targets Outlook apps on iOS and Android. These don’t assist kinetic interactivity, so we once more power them to point out the fallback and conceal the interactive block.
At the moment, in Stripo, we place this CSS straight in the beginning of the e-mail physique code due to how the editor works. However quickly, you’ll be capable of add it to the Customized CSS tab within the code editor. If you happen to’re utilizing a distinct editor, be happy to put the CSS wherever it really works greatest for you — based mostly in your editor’s construction and your preferences.
We’ve constructed a template that features all of the required code and variations. Discover it to overview the setup, customise the content material, and ship check emails to see how every little thing works in motion.
The way it behaves in actual life
Benefits of this technique
Recipients will at all times see your message — irrespective of which electronic mail shopper they use. If interactivity isn’t supported, they’ll nonetheless see the static model. There’s no danger of a component being stripped out fully as a consequence of lack of assist. Everybody will get the message, and nobody is not noted.
Cons of this technique
When you add the conditional code, you:
- received’t be capable of edit the variations via the UI — solely by way of the code editor; and
- in preview mode, you’ll see the kinetic HTML model, not the fallback. The static fallback model shall be hidden.
We’re presently engaged on a switcher for the editor that can allow you to toggle between variations, edit every one via the UI, and preview them correctly. This function is coming quickly.
What are you able to do now? First, construct and fine-tune each variations — kinetic and static — both via drag-and-drop or the code editor. When you’re pleased with how every little thing seems to be and works, then add the conditional code snippets.
Don’t overlook AMP
The code we mentioned controls the static and kinetic variations of your electronic mail. However there’s additionally a 3rd model to incorporate: AMP HTML. It acts because the default when supported and is proven solely to recipients utilizing AMP-compatible electronic mail purchasers like Gmail, Yahoo, and FairEmail.
If AMP isn’t supported, the recipient will see the HTML model — both kinetic or static, relying on what their electronic mail shopper permits.
Right here’s the way it works:
- if AMP is supported (e.g., Gmail, Yahoo), the AMP model is proven;
- if AMP isn’t supported however the shopper handles HTML5 and CSS3 (e.g., Apple Mail, Samsung Mail), the kinetic model is proven;
- if neither is supported (e.g., Outlook), the static model is proven.
This fashion, every recipient sees just one model — by no means a number of layers or damaged components.
In our Interactive Module Generator, we mixed all electronic mail variations right into a single module — so customers can design interactive emails with no code, proper from the UI.
Testing your emails
To check your emails and see who receives which model, we advocate two easy approaches:
- use instruments like Electronic mail on Acid. Whilst you received’t be capable of work together together with your emails or confirm whether or not varieties work throughout all interactive variations, these instruments present you precisely which model (AMP, kinetic, or static) seems in every electronic mail shopper;
- ship check emails to your self utilizing as many electronic mail purchasers as doable. Even when you solely have Gmail and Apple Mail, that may be sufficient. To test the AMP model in Gmail, activate Dynamic content material in your settings. To see the fallback (static) model — much like what Outlook customers see — merely flip that setting off.
When sending check AMP emails, be sure you add Stripo as your trusted sender. Go to your Gmail settings, then
- activate the choice to obtain dynamic content material (if it’s not on but);
- specify us information@stripo-test.electronic mail as a trusted sender.
Wrapping up
Many assumed — similar to we did — that if a shopper helps kinetic HTML, it helps all of it. However that’s not at all times the case. This technique helped us keep away from damaged layouts and guarantee each recipient will get a dependable model of the e-mail. It’s not good but, nevertheless it’s a giant step towards safer, smarter interactivity.
Design interactive emails that work throughout all electronic mail purchasers with ease
Was this text useful?
Thanks in your suggestions!