Yii User Managment Yummailer

hi… some one can show me hoe enable mail controller using PHP mailer

http://code.google.com/p/yii-user-management/w/list

this is my Yummailer controllefile

<?php

/**

  • YumMailer just implements the send() method that handles (guess what)

  • the mailing process of messages.

  • the first parameter can either be an array containing the Information

  • or a string containing the recipient, or a object instance of YumUser.

  • In the YumUser case, the email will be sent to the E-Mail field of the

  • most actual profile.

  • @return true if sends mail, false otherwise

*/

class YumMailer {

static public function send(&#036;to, &#036;subject = null, &#036;body = null, &#036;header = null) {


	if(&#036;to instanceof YumUser)


		&#036;to = &#036;to-&gt;profile-&gt;email;





	if(&#33;is_array(&#036;to)) 


		&#036;to = array(


				'to' =&gt; &#036;to,


				'subject' =&gt; &#036;subject,


				'body' =&gt; &#036;body);





	if(Yum::module()-&gt;mailer == 'swift') {


		&#036;sm = Yii::app()-&gt;swiftMailer;


		&#036;mailer = &#036;sm-&gt;mailer(&#036;sm-&gt;mailTransport());


		&#036;message = &#036;sm-&gt;newMessage(&#036;to['subject'])


			-&gt;setFrom(&#036;to['from'])


			-&gt;setTo(&#036;to['to'])


			-&gt;setBody(&#036;to['body']);


		return &#036;mailer-&gt;send(&#036;message);


	} else if(Yum::module()-&gt;mailer == 'PHPMailer') {


		Y[color=&quot;#FF0000&quot;]ii::import('application.extensions.phpmailer.JPhpMailer');


		&#036;mailer = new JPhpMailer(true);


		


        &#036;mailer-&gt;IsSMTP();


        &#036;mailer-&gt;Host = 'mail.bizappsi.com';


        &#036;mailer-&gt;SMTPAuth = true;


        &#036;mailer-&gt;Username = 'channa@bizappsi.com';


        &#036;mailer-&gt;Password = 'Solution4u';[/color]


      //  &#036;mailer-&gt;SetFrom('channa@bizappsi.com', 'BizAppsi');


		


		if (Yum::module()-&gt;phpmailer['transport'])


			switch (Yum::module()-&gt;phpmailer['transport']) {


				case 'smtp':


					&#036;mailer-&gt;IsSMTP();


					break;


				case 'sendmail':


					&#036;mailer-&gt;IsSendmail();


					break;


				case 'qmail':


					&#036;mailer-&gt;IsQmail();


					break;


				case 'mail':


				default:


					&#036;mailer-&gt;IsMail();


			}


		else


			&#036;mailer-&gt;IsMail();





		if (Yum::module()-&gt;phpmailer['html'])


			&#036;mailer-&gt;IsHTML(Yum::module()-&gt;phpmailer['html']);


		else


			&#036;mailer-&gt;IsHTML(false);





		&#036;mailerconf=Yum::module()-&gt;phpmailer['properties'];


		if(is_array(&#036;mailerconf))


			foreach(&#036;mailerconf as &#036;key=&gt;&#036;value) {


				if(isset(JPhpMailer::&#036;{&#036;key}))


					JPhpMailer::&#036;{&#036;key} = &#036;value;


				else


					&#036;mailer-&gt;&#036;key=&#036;value;


			}


		&#036;mailer-&gt;SetFrom(&#036;to['from'], Yum::module()-&gt;phpmailer['msgOptions']['fromName']); //FIXME


		&#036;mailer-&gt;AddAddress(&#036;to['to'], Yum::module()-&gt;phpmailer['msgOptions']['toName']); //FIXME


		&#036;mailer-&gt;Subject = &#036;to['subject'];


		&#036;mailer-&gt;Body = &#036;to['body'];


		return &#036;mailer-&gt;Send();


	} else {


		if(&#036;header == null) {


			&#036;header  = 'MIME-Version: 1.0' . &quot;&#092;r&#092;n&quot;;


		&#036;header .= 'Content-type: text/html; charset=utf-8' . &quot;&#092;r&#092;n&quot;;


		&#036;header .= 'From: ' . Yum::module('registration')-&gt;registrationEmail . &quot;&#092;r&#092;n&quot;;


		&#036;header .= 'To: ' . &#036;to['to'] . &quot;&#092;r&#092;n&quot;;

}

		return mail(&#036;to['to'], &#036;to['subject'], &#036;to['body'], &#036;header);


	}


}

}