I’ve reported an issue I met in Yii, see this ticket: https://github.com/y...yii/issues/1383
Now I am looking to some alternatives or workaround to get a template applied to a email layout (header, footer). Be aware that I am in a console application.
I’ve started the view render like this
$mail->Body = CController::renderInternal(Yii::app()->basePath . '/views/email/onNewAdminUser.php', array('model' => $model, 'sender_name' => $sender_name), true);
Please post your ideas for discussion.