Actually in a way you can. Generate the charts as files, then use cfmailparam 
to include the files. 

Create a variable that holds the fileinformation:
<cfset LocationAndFileName = getTempFile(getTempDirectory()) & ".png" />

Generate your chart as a variable and then save it:
<cfchart format="png" name="chartName" ... >...</cfchart>
<cfset fileWrite("#LocationAndFileName#", chartName) />

The cfmailparam code looks like this:
<cfmailparam contentID="makeAnID" file="#LocationAndFileName#" 
disposition="inline" />

Then in your html code for the email have:
<img src="cid:makeAnID" />

It will include it inline.

Steve


-----Original Message-----
From: Les Irvin [mailto:les.cft...@gmail.com] 
Sent: Monday, February 20, 2012 7:30 PM
To: cf-talk
Subject: emailing a cfchart?


Is it possible to have cfchart code (format="png" or "jpg") within a
cfmail tag and have the graphic actually show up in the email? I can't
seem to manage it...
Thanks in advance for any help,
Les



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to