• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

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

Expert:
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 abc@xyz.com and def@xyz.com 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,
0
tcmmaxt
Asked:
tcmmaxt
1 Solution
 
_agx_Commented:

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, "abc@xyz.com,def@xyz.com")>
    <cfmail from="#from#" to="#to#" cc="#cc#" subject="#subject#" type="HTML">#message# </cfmail>  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now