A friend asked me if it was possible to embed a Flash animation in a HTML email.
I’ve been fiddling around with it for a while and I can get it to work fine with static images.
But the ‘standard’ HTML for embedding a Flash file gets sanitized by my mail client (SquirrelMail). That basically means that it strips the Flash file from the HTML.
This is what the HTML in the mail looks like:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="200" HEIGHT="400" id="bobler" ALIGN="">
<PARAM NAME=movie VALUE="bobler.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#DDF8FF> <EMBED src="bobler.swf" quality=high bgcolor=#DDF8FF WIDTH="200" HEIGHT="400" NAME="bobler" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
and this is what it looks like when the mail client displays it:
<!-- begin sanitized html -->
<div class='bodyclass'>
<param name="movie" value="bobler.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#DDF8FF">
</div>
</param></param></param>
<!-- end sanitized html -->
Is it possible at all to use Flash in HTML emails or do all email clients strip it?