Frage

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");
War es hilfreich?

Lösung

You have to use an array of recipients:

$message->cc=(array("mail1@gmail.com","mail2@gmail.com"));

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top