List of Topics

SfC Home > Web Design > SQL > ColdFusion >

Sending a Flash Animation with ColdFusion Email

by Ron Kurtus (updated 27 May 2023)

Although it is very difficult to include a Flash animation when sending an email through standard methods, you can include the animation when sending email in ColdFusion. All that is needed is to make some simple modifications to the Flash HTML code and then send the email though the CFMAIL tag.

Questions you may have include:

This lesson will answer those questions.

Flash in email difficult

A major problem in sending Flash animations in email stems from how most email browsers handle HTML. Because of this even the company that makes Flash—Adobe/Macromedia—Flash animations in their promotional emails, such as their newsletter. Instead, they provide a link to a web site.

Get around limitations

You can get around the email browser limitations by sending your email through CFMAIL.


The process is as follows:

  1. Make a CFMAIL template.
  2. Make your Flash movie and paste the code into the template.
  3. Modify the code slightly.
  4. Upload the CFM and SWF files to your server.
  5. Send the email.

Code modifications

The modifcations to the Flash HTML code consists of changing every occurance of # to ## and making the link to the SWF absolute (full web address) insteaf of relative.

Receiver in HTML

Note that the person receiving the email must have the email application set to reading HTML.

Example of code

Start with the typical CFMAIL code

SUBJECT="Important Animation"

Paste standard Flash code for your movie

Make changes similar to those marked in red:

<OBJECT classid="clsid:D27CD6E-AE6D-11cf-96B8-4440000"
ID=animation WIDTH=800 HEIGHT=400>

Use full URL instead of just /stuff/animation.swf.



<EMBED SRC="http://www.mysite/stuff/animation.swf" QUALITY=HIGH BGCOLOR=##FFFFFF
WIDTH="800" HEIGHT="400"
TYPE="application/x-shockwave-flash" PLUGINSPAGE=
" P1_Prod_Version=ShockwaveFlash">



Place SWF file

Obviously, you must place the your Flash SWF file in the location on your server that is indicated in your absolute Web address. In the example above, that means in the /stuff/ folder.


It is difficult to include a Flash animation when sending an email through standard methods. You can include the animation when sending email in ColdFusion with some simple modifications to the Flash HTML code.

Always do your best

Resources and references

Ron Kurtus' Credentials


ColdFusion Resources


(Notice: The School for Champions may earn commissions from book purchases)

Top-rated books on ColdFusion

Students and researchers

The Web address of this page is:

Please include it as a link on your website or as a reference in your report, document, or thesis.

Copyright © Restrictions

Where are you now?

School for Champions

ColdFusion topics

Sending a Flash Animation with ColdFusion Email

ColdFusion topics


Development methods

Specific applications

Also see

Let's make the world a better place

Be the best that you can be.

Use your knowledge and skills to help others succeed.

Don't be wasteful; protect our environment.

You CAN influence the world.

Live Your Life as a Champion:

Take care of your health

Seek knowledge and gain skills

Do excellent work

Be valuable to others

Have utmost character

Be a Champion!

The School for Champions helps you become the type of person who can be called a Champion.