Yii Framework: Send mail to multiple recipients with YiiMailMessage
-
21-12-2019 - |
문제
I need to add multiple CC email recipients using YiiMailMessage. Recipients get them from a table.
Try these ways and does not work
$message->cc=("mail1@gmail.com, mail2@gmail.com");
$message->cc=("mail1@gmail.com; mail2@gmail.com");
해결책
You have to use an array of recipients:
$message->cc=(array("mail1@gmail.com","mail2@gmail.com"));
제휴하지 않습니다 StackOverflow