Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/modules/email/classes/Mailer/User.php
<?php defined('SYSPATH') or die('No direct script access.');

class Mailer_User extends Mailer {

	public function before()
	{
		$this->config		= "default";
	}

	public function welcome($email, $subject, $text, $html = false, $mime=null, $attachments=null) 
	{
	
		$this->to 			= $email;
		$this->from 		= array( !is_null( $mime ) ? $mime['from_email'] : Kohana::$config->load('site.emailnoreply') =>  !is_null( $mime ) ? $mime['from_name'] : Kohana::$config->load('site.appName'));
		$this->subject		= $subject;
		$this->attachments	= $attachments;
	//	$this->data 		= array('user' => array('name' => 'Tom'));
		$this->html			= $text;
	}
			
}

?>