[center][left]
I wanna send email to multiple recipients at a time without adding
cc
and only by
to
using
YiimailMessege
extension.Is it possible any suggestions will be appreciated.I have tried by adding
cc
and it works but I dont wanna add
cc
.my code looks like this[/left]
[/center]
$message = new YiiMailMessage;
$message->view =$model->viewName;
$message->subject = $model->subject;
$params = array('myMail'=>$model->object1);
$message->setBody($params,'text/html');
$message->addTo($model->to);
$message->AddCC($model->from);
$message->from = $model->from;
$message->cc=array($model->senderEmail,$model->additionalEmail);
$message->Replyto = $model->from;
Yii::app()->mail->send($message);
and how it would possible by
to
using
YiimailMessege
extension