Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 890
Jason Avatar asked Mar 02 '10 15:03

Jason


1 Answers

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

Message recipient e-mail addresses:

  • Static address, for example, "[email protected]".
  • 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.

like image 79
ale Avatar answered Oct 24 '22 00:10

ale