Hi everyone
I have problem for send mail. now I have user YiiMailer extension for send mail. but body message is:
Content-type: text/html
Any suggestion.
Hi everyone
I have problem for send mail. now I have user YiiMailer extension for send mail. but body message is:
Content-type: text/html
Any suggestion.
Hi, please post some of your code in the post and we will help you
$email = new YiiMailMessage();
$email->view = '//path/to/view/file';
$email->setTo($user->email);
$email->setFrom(Yii::app()->params['noReplyEmail']);
$email->setSubject('this is a test');
$email->setBody(array('model' => $model), 'text/html');
Yii::app()->mail->send($email);