Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Countdown Timer Image GIF in Email

I recently received an emailer from Onnit Labs that included a Countdown Module Timer inside the emailer using a gif image. The emailer can be viewed here: https://www.onnit.com/emails/lastchance-historic/

The Image can be seen here:

enter image description here

I looked into it, and it seems you can keep sending new frames to an animated GIF using gifsockets, as a GIF doesn't specify how many frames it has when loaded in the browser. Here it is on github: http://github.com/videlalvaro/gifsockets

I thought this was pretty interesting and a cool effect indeed. Does anyone have any other insights on how this could be accomplished? It seems as though the one they're using at Onnit seems to change the countdown according to date appended at the end of URL or image.

onnit.com/emails/_modules/timer/?end=2012-12-27+00:00:00&dark=1

I'm trying to accomplish the same thing to send in an email, but I am a little stumped.

like image 833
alvaram Avatar asked Nov 27 '12 21:11

alvaram


People also ask

Can I embed a countdown timer in an email?

One of the easiest way to add countdown timers to an email is to use looped GIF animations. All you need to do is to find such GIF in a stock image library and insert it into an email's 'Image' block. Email clients don't cut GIF countdown timers out from emails because they don't see them as something suspicious.

Can you add a countdown timer to Outlook email?

To add a countdown counter in Outlook, you need to: Select more commands in your quick access toolbar. Choose the "Attach file" function, click "Add" button and click "Ok". In your PromoFeatures account, download timer as html file. Open the "Attach a file" window in your quick access toolbar.


2 Answers

While maybe gifsockets would work (I haven't tried that before...), there is no network traffic while I am looking at the image other than the initial image load. I am also seeing it it jump from 41 to 42 again. A Reload took it down to 39.

It appears to be just a script that generates 60 frames of animation and sends them to the user. This could probably be done in any language.

Here is how it is done in php:

http://seanja.com/secret/countdown/

enter image description here

like image 67
SeanJA Avatar answered Sep 27 '22 18:09

SeanJA


I found http://sendtric.com/ which is free and very easy to integrate.

like image 22
Guillaume Avatar answered Sep 27 '22 20:09

Guillaume