$data = array();
$data['username'] = $user->username;
$data['password'] = $user->password;
Email::factory()
->subject('test sub')
->from('abc@yahoo.com')
->to('abc@yahoo.com')
->message('user/passwordreminder.stags',$data);
->send();
Email::print_debugger();
Harro Verton wrote on Monday 27th of June 2011:From where do you call the Email class? And how do you call it? And your app's bootstrap.php contains this?Autoloader::add_classes(array( 'Email' => APPPATH.'classes/email.php', ));
$data = array();
$data['username'] = $user->username;
$data['password'] = $user->password;
Email::factory() ->subject('test sub')
->from('abc@yahoo.com')
->to('abc@yahoo.com')
->message('user/passwordreminder.stags',$data)
->send();
Email::print_debugger();
$email = Email::factory(); Debug::dump($email);You'll see you get a email driver instance returned.
It looks like you're new here. If you want to get involved, click one of these buttons!