emailcoldfusioncfmail

How do I separate multiple email addresses in cfmail


Do I use a comma or semicolon? I can't seem to find it in the live docs. I also can't seem to find any consistency looking online as some examples use a comma while others use a semicolon. Are both acceptable?


Solution

  • Per https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-m-o/cfmail.html

    Message recipient e-mail addresses:

    • Static address, for example, "support@.com".
    • Variable that contains an address, for example, "#Form.Email#".
    • Name of a query column that contains an address, for example, "#EMail#". An e-mail message is sent for each returned row.

    To specify multiple addresses, separate the addresses with commas.

    (emphasis mine)

    I do believe semicolons will work as well.