2Feb/100
Sending an email to more than one address using the Email Component
It took me some time to figure out how to send an email to more than one email address using the CakePHP Email Component. I'll share my findings, maybe this will save somebodys time.
According to the cookbook the "to" variable only accepts a string, which is different to the "cc" and "bcc" variable. Both accept an array. To send an email to more than one address you have to sepearate the email addresses using a comma, which is pretty annoying as it is not documented.
I'll open a ticket in Lighthouse to make the "to" variable also accept an array.
Update: I opened a new Lighhouse ticket and also made a contribution to the cookbook to document this behavior.