What is the correct syntax for the cc attribute within <cfmail>  to send multiple cc:'s

Posted on 2011-04-19
Last Modified: 2012-05-11
I am new to Cold Fusion. I need to hard code  2 email addresses to the cc attribute that is already within <cfmail . The 2 Cc email addresses will be hard coded and respectively and will append the cc attribute in <cfmail from="#from#" to="#to#" cc="#cc#" subject="#subject#" type="HTML">#message# </cfmail>   such that these 2 people will always get a Cc of the Email along with the single person set by #CC#  in  <cfmail

thank you,
Question by:tcmmaxt
    1 Comment
    LVL 51

    Accepted Solution


    CFMAIL takes a comma delimited list of email addresses. To be safe I'd append the values to the #cc# variable with list functions. Then call cfmail

         <cfset cc = listAppend(cc, ",")>
        <cfmail from="#from#" to="#to#" cc="#cc#" subject="#subject#" type="HTML">#message# </cfmail>  

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
    Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now