Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to embed an iframe in an email with text that updates?

I want to embed an iframe inside an email that contains the 10 most recent chat messages. Is there a way to make this iframe dynamic so that it always shows the latest 10 chats regardless of when the email is opened? If the iframe is not the correct way to do this, is there a better way?

like image 601
John Avatar asked Jan 30 '16 06:01

John


People also ask

Can you include an iframe in an email?

An iframe can be used to add your form landing page inside of another web page. This helps keep an open connection between the form and your contact database in BombBomb. But iframes typically don't work in email. This is because email doesn't function the same as a web page.

How do I put an HTML in the body of an email?

You can embed HTML in email with the 'Insert as Text' option. Select 'Insert' > Attach File > Select the htm. file > Click on 'Insert' dropdown bar > Select 'Insert as Text'.

What is the difference between iframe and embed?

EMBED is basically the same as IFRAME, only with fewer attributes. Formally, EMBED is an HTML 5 tag, but on several browsers it will also work for HTML 4.01, if you are using this. It just cannot be validated. As always HTML 5 is recommended for the pages.

Can you embed something in an email?

Start your email application and begin a new message. For most email programs, click the “Insert” option to choose the file and embed it into the message.


2 Answers

You can implement an iframe into the email - but your mail will be recognized as spam by many providers.

You should try to render your content dynamically into an image and implement that image into the email.

like image 101
Roman Avatar answered Sep 30 '22 02:09

Roman


There kind of is a solution. It is using Dynamic CSS with a fallback of a Dynamic image to pull the information. It is not elegant really as for some clients (e.g. Outlook) this is not available at all and will only display initial information. It also utilizes a link for a style sheet which also severely limits which clients this will work in.

The fall back dynamic image is a bit more comprehensive in client support, but much harder to maintain as you will need to build something that programatically pulls the tweets (HTML webpage potentially) and then also have something that creates and hosts an image for the email to pull. This is not a short, simple thing to set up and may not be worth the required back end work for a simple email.

See this link for a bit more in-depth info on how this can be done for adding a live twitter feed into an email: https://litmus.com/blog/how-to-code-a-live-dynamic-twitter-feed-in-html-email

like image 42
Gortonington Avatar answered Sep 30 '22 00:09

Gortonington