To simplify this, you can set remove="true" on cfmailparam to indicate that the file should be deleted after the email is sent.
Blair On Tue, Apr 13, 2010 at 10:21 AM, Seona Bellamy <seon...@gmail.com> wrote: > When I've had to do this sort of thing in the past, I've always found that > the easiest way was to create the file, attach it, then delete it from the > server if I had no need to keep it. > > From a conceptual point of view, I'm not sure that attaching a file that > hasn't been created actually makes sense. The attachment is a file, > therefore I can't think of any way to get around actually creating a file to > attach. Does that thought still make sense now that it's outside my head? > Having an odd morning so I'm not sure... > > Cheers, > > Seona. > > > On 13 April 2010 10:14, KNOTT, Brian <brian.kn...@suncorp.com.au> wrote: > >> Presently there is no file. I want to do it on the fly with out >> creating a file. >> >> >> >> Brian >> >> >> >> *From:* cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] *On >> Behalf Of *Kevin Pepperman >> *Sent:* Tuesday, 13 April 2010 10:13 AM >> *To:* cfaussie@googlegroups.com >> *Subject:* Re: [cfaussie] email attachments >> >> >> >> Yes, just add cfmailparam between your cfmail tags with a path to the >> file. It will attach it to the email. >> >> >> >> <cfmailparam file = "#thisFilePath#" type="text/plain"> >> >> >> >> >> >> >> >> On Mon, Apr 12, 2010 at 8:01 PM, KNOTT, Brian <brian.kn...@suncorp.com.au> >> wrote: >> >> attachment >> >> >> >> >> -- >> /Kevin Pepperman >> >> "They who can give up essential liberty to obtain a little temporary >> safety, deserve neither liberty nor safety." - Benjamin Franklin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "cfaussie" group. >> To post to this group, send email to cfaus...@googlegroups.com. >> To unsubscribe from this group, send email to >> cfaussie+unsubscr...@googlegroups.com<cfaussie%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/cfaussie?hl=en. >> >> ------------------------------ >> This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of >> its related entities "Suncorp". >> Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on >> 13 11 55 or at suncorp.com.au. >> The content of this e-mail is the view of the sender or stated author and >> does not necessarily reflect the view of Suncorp. The content, including >> attachments, is a confidential communication between Suncorp and the >> intended recipient. If you are not the intended recipient, any use, >> interference with, disclosure or copying of this e-mail, including >> attachments, is unauthorised and expressly prohibited. If you have received >> this e-mail in error please contact the sender immediately and delete the >> e-mail and any attachments from your system. >> If this e-mail constitutes a commercial message of a type that you no >> longer wish to receive please reply to this e-mail by typing Unsubscribe in >> the subject line. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "cfaussie" group. >> To post to this group, send email to cfaus...@googlegroups.com. >> To unsubscribe from this group, send email to >> cfaussie+unsubscr...@googlegroups.com<cfaussie%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/cfaussie?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaus...@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com<cfaussie%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.