Please help how to set view html using yii-mail

Hi everyone. I want to send email using yii-mail. I’ve set the view but it seems that the html doesn’t have any impact. This is my site controller :





public function actionMail()

{

    $this->layout = '';


    $message = new YiiMailMessage;

    $message->view = 'reg_confirmation';

    $message->setBody('','text/html');

    $message->subject = 'Welcome Message';

    $message->addTo('test@yahoo.com');

    $message->from = Yii::app()->params['adminEmail'];

                

    Yii::app()->mail->send($message);

 }



And this is my reg_confirmation.php




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/960gs/reset.css" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/960gs/text.css" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/960gs/960.css" />


<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/style.css" media="screen" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/form.core.css" media="screen" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/form.style.css" media="screen" />


<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/dropdown/dropdown.css" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/cs_form.css" media="screen" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/general.css" media="screen" />

<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl ?>/css/main.css" media="screen" />


<title>Veevou</title>


</head>


<body>


	<div id="v_Container" class="container_16">

                

                <div id="v_Header" class="grid_16 clearfix">

                        

                </div>

                

                <div id="content" class="grid_14 prefix_1">

                        <?php echo CHtml::image(Yii::app()->baseUrl.'/images/header-background.png'); ?>

                        Thanks for registering. This is the welcome message

                </div>


        </div>


</body>


</html>




In my css i set the div id="v_Header" to have some background image.

The email succesfully sent, but it only shows the text.

Am I applying it correctly ? Please help. Thanks

try using createAbsoluteUrl("/") instead of baseUrl