質問

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