Skip to main content
Participant
July 6, 2011
Question

Attaching multiple uploads in cfmail

  • July 6, 2011
  • 2 replies
  • 1038 views

I have a form that allows users to upload up to 5 documents, which will be stored on a server.  I then want to send an email that will have those documents as attachments.  How do I go about attaching those documents using cfmail and cffile uploadall?  Or are there better options?

    This topic has been closed for replies.

    2 replies

    tdnissenAuthor
    Participant
    July 6, 2011

    That's what I was thinking, but wasn't sure how to go about it.  Do I need five cfmailparam tags, or can all five attachements be included with just one cfmailparam tag?  What do I use for file names?

    Participating Frequently
    July 6, 2011

    You need a cfmailparam tag for each file, and the filename for each should

    be available from the cffile upload process.

    Inspiring
    July 6, 2011

    Handily, Adobe have documented all of this for us.  How to use CFMAILPARAM:

    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-70ea.html

    --

    Adam

    Inspiring
    July 6, 2011

    Attaching the documents can be accomplished with the cfmailparam tag.