I'm attempting to generate a pdf through fields in a database (this part I have working fine) and then take that pdf file and attach it to an email. I'm using the Max Paperno tutorial to accomplish this, so the code reads:
<CFHEADER NAME="Content-Disposition" VALUE="inline; filename=gift.fdf"> <CFCONTENT TYPE="application/vnd.fdf"> <cfinclude template="gift.fdf"> And all my variables fill in. However when, I then go to attach the file to an email (using cfmail with a cfmailparam tag) it attaches the original pdf which shows the cf variable names instead of the actaual dynamic data. My fdf file reads as: <cfoutput> %FDF-1.2 %âãÏÓ 1 0 obj << /FDF << /Fields [ << /V (#expdate#)/T (expdate)>> << /V (#serialnum#)/T (serialnum)>> << /V (#clubrenewal.username#)/T (username)>> ] /F (http://www.gostarpower.com/club/coupon/gift.pdf)/ID [ <592d65d9f72506dde1135c341d9fdab9><3b3abd4eb0b65949c24c7ebb37fb1f7f> ] >> >> endobj trailer << /Root 1 0 R >> %%EOF </cfoutput> I know that activepdf would most likely accomplish this, but I'm not at the point of wanting to spend $$ on it. Any help or thoughts would be greatly appreciated. Thank you, Adam M. Sokolic STAR POWER Systems, Inc. Web Developer Boulder, CO Phone:303-209-0219 or 1-800-635-6750 x219 Fax: 303-449-4222 E-Mail: [EMAIL PROTECTED] Visit the STAR POWER® Online Network: http://www.GoStarPower.com (Company Info, Chats, Events, Product Resources) ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists