Multiple receipient in Swiftmailer

Dear All,

How to add multiple mails in cc list of swiftmailer in yii2

Yii::$app->mailer->compose('contact/html', ['contactForm' => $form])






public $this setCc ( $cc )



Simply pass the email addresses as a single string separated with ’ , ’ (comas) or in an array format.

$cc	string|array	

Copy receiver email address. You may pass an array of addresses if multiple recipients should receive this message. You may also specify receiver name in addition to email address using format: [email => name].


SetCC - Details