In my controller i'm using a email function with the following code:
public function email($mail = null){
$email = new CakeEmail('default');
$email->config('default');
$email->from(array('test@test.com' => 'testing'));
$email->to('$mail');
$email->subject('Approved');
$email->send('Approved');
At the top i have
App::uses('AppController', 'Controller', 'CakeEmail', 'Network/Email');
However, i receive the error Fatal error: Class 'CakeEmail' not found in.
I'm not sure where i have gone wrong. Can anybody please assist?