nope, EmailComponent is deprecated, use CakeEmail

App::uses('CakeEmail', 'Network/Email');
$email = new CakeEmail;

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/6 Daniel <danwgr...@gmail.com>

> When I try to declare an email component:
> $email = new Email();
> ... I get the following error:
>
> Fatal error: Class 'Email' not found in C:\xampp\htdocs\testapp
> \controllers\users_controller.php on line 72
>
> I tried adding a reference at the top of my controller:
>
> var $components = array('Email');
>
> ... but I am just guessing.  What am I doing wrong?
>
> Thanks.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to