문제

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"));

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top