I am currently using the yii-user extension which has registration confirmations built in. I am also using PHP mailer to send mail how config
public static function sendMail($email,$subject,$message) {
$adminEmail = Yii::app()->Smtpmail;
$headers = "MIME-Version: 1.0\r\nFrom: $adminEmail\r\nReply-To: $adminEmail\r\nContent-Type: text/html; charset=utf-8";
$message = wordwrap($message, 70);
$message = str_replace("\n.", "\n..", $message);
return mail($email,'=?UTF-8?B?'.base64_encode($subject).'?=',$message,$headers);
}
Yii::import(‘application.extensions.phpmailer.JPhpMailer’);
$mail = new JPhpMailer;
$mail->IsSMTP();
$mail->Host = ‘mail.bizappsi.com’;
$mail->SMTPAuth = true;
$mail->Username = ‘channa@bizappsi.com’;
$mail->Password = ‘Solution4u’;
$mail->SetFrom(‘channa@bizappsi.com’, ‘BizAppsi’);
$mail->Subject = $model->subject;
$mail->AltBody = ‘view message,’.’<br/>’.$model->body;
$mail->MsgHTML(’<h1>’ .$model->name.’<br/>’.’… ‘.’<br/>’.’</h1>’);
how add this mail configuration in to YII USER module please help…?