<iframe> cannot be used in most email clients - whether in the application or as a website. They are either shared for one of several reasons:
- The mail client / web client may have problems displaying it, so it is excluded.
<iframe> can be used for phishing / malicious attacks, placing malicious code in something that was also tested and safe at the same time (the browser / client cannot see or scan what is loaded in the iframe, it just loads it into the DOM).
An alternative (what YouTube does), instead of embedding something in an iframe (in their case, a video), they have a <a> wrapped around an <img> or a thumbnail, giving the impression that you are playing a video. Everything that you do when you click on it gets to this URL.
If you tried to put the extended code in an email, you can manually write it. This, however, has other effects, as some other tags are limited / stylists can be a big problem for emails. AFAIK some HTML5 elements are also removed from emails.
Like Orangepill , Campaign Monitor did the job and provided a diagram showing where iframes can be used . They also suggest staying away from iframes.
A solution not mentioned should be to have an image with a link below that says "View this message" on a web page that will lead the user to a page with an <iframe> .
source share