Never mind Worked it out. Ended up using ImageNew() and CFPDF to make sure the files were being read into the variables properly and attaching correctly.
Thanks for your help. Just a side not if anyone is listening from the powers that be, i did notice using this method creates a tmp file and the tmp file is attached to the email (see below) X-Mailer: ColdFusion 8 Application Server body: body: body: file: E:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\cftmp2 8751.tmp file-type: image/jpeg file-disposition: attachment remove: true ...Notice the "remove" value? Why cant we add that in ourselves? But we can! Its not documented but why not?? <cfmailparam file="myFile.pdf" remove="true" /> This tells the CFMAIL process to remove the file after the email has been processed. There you go hey! Steve -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis Sent: Thursday, 13 November 2008 2:32 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Attaching files to emails ok so that works but the files i am receiving in my email dont open. Do i need to uncode the variable or something? -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Terry Sasaki Sent: Thursday, 13 November 2008 2:04 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Attaching files to emails Steve, probably my english is not good enough (grin). I mean: <cfmailparam file="justAFileNameToBeUsed.pdf" content="#myCFSaveContentForExample#"> cheers. T 2008/11/13 Steve Onnis <[EMAIL PROTECTED]>: > I want to attach it, but i want to do it by passing in the data of the file, > not the path to the file > > what would be good would be a "deleteattachmentfiles" attribute or something > to instruct the cf server to clean up the files used as the attachments > after the email has been processed > ________________________________ > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Dale Fraser > Sent: Thursday, 13 November 2008 1:40 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: Attaching files to emails > > I don't get it, > > > > You want to attach a file, but not have it attached? > > > > The answer is no, you can attach or insert a link. > > > > Regards > > Dale Fraser > > http://learncf.com > > http://flexcf.com > > > > > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Steve Onnis > Sent: Wednesday, 12 November 2008 9:22 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Attaching files to emails > > > > Is it possible to attach a file to an email but not use a file path? I want > to do something similar to downloading a file where you push the content > out. I have files i need to attach but they get dynamically created so i > dont want to have all these files hanging around. > > > > What i was hoping to be able to do was something like.... > > > > <cfmailparam type="application/octet-stream" value="#pushFile#" > name="file.pdf" /> > > Any ideas? > > Steve > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---