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?
4 Answers
You can use either of them, and it should be fine. Although for consistency with existing email clients, I'd use a semicolon.
I'm not sure how commas would behave in other CF engines, such as Railo or OpenBD, whereas ;
would work on all of them.

- 1
- 1

- 21,468
- 11
- 68
- 93
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.

- 6,369
- 7
- 55
- 65
Comma separate the email addresses is the answer i found in o'reilly's coldfusion book. its possible semi-colons will work, but commas for sure.
-Don

- 6,200
- 3
- 35
- 30
I think it depends on your mail server. If you're using Exchange, it expects semicolons. Most smtp servers prefer commas. Experiment and see what works for you.

- 19,505
- 17
- 80
- 113
-
CFMAIL uses SMTP, which uses commas. – ale Mar 02 '10 at 21:26