Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfdump in cfmail

Status
Not open for further replies.

minli98

IS-IT--Management
Aug 30, 2005
178
US
Hi,

In my cfcatch, I am trying to set up an email of cfdump of all session variables. However, the email received is hard to read. All the cfdump formatting is lost. I have tried the following two methods:
Code:
<cfmail...>

<cfdump var="#session.transaction#">
</cfmail>
Code:
<cfsavecontent variable="dumpVariable">	
<cfdump var="#session.transaction#">
</cfsavecontent>
<cfmail ...>
#dumpVariable#
</cfmail>

Does anyone know how to properly use cfdump inside a cfmail?

Thank you in advance.

Min
 
Did you have [maroon]type="HTML"[/maroon] in your cfmail tag?

Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
ECAR,

No, I forgot to turn that on. It's much better now. I still get all the javascript functions dumped at the beginning of the message, but at least I can see the session struct tables now.

Thanks a whole lot!

Min
 
Min,

if you use <cffile ...> to write the cfdump out to a file, and delete the file when the mail is spooled you could attach the dumped data as an HTML file, and the javascript would render...
 
dlCF,

Thanks for the tip. I will keep that in mind, but for this purpose I don't really mind the js dump too much because it's part of a cfcatch that is (should be anyway) triggered rarely.

Min
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top