savecontent variable="tmpVariable" {
writedump(application);
}
// Create an instance of the mail object
mail=new mail();
// Set it\'s properties
mail.setSubject( "Application" );
mail.setTo( "me@domain.com" );
mail.setFrom( "me@domain.com" );
// Add email body conten
mail.addPart( type="html", charset="utf-8", body="SampleBody );
// Add the cfdump as savedcontend ( which is just html )
// as an attachment rather then in the body
mail.addParam(file="report.htm", content=tmpVariable );
// Send the email
mail.send();