I can't figure out what settings are my CakeEmail errors. My protected
function looks like this
protected function sendActivation($user_id) {
$this->CakeEmail->reset();
$this->User->ActivationCode->deleteAll(array('type' => 'activation',
'user_id' => $user_id));
$this->User->ActivationCode->save(array('type' => 'activation', 'user_id'
=> $user_id));
$user = $this->User->findById($user_id);
$this->CakeEmail
->template('activate', 'default')
->emailFormat('text')
->from(array('[email protected]'))
->to($user['User']['email'])
->viewVars(array('user' => $user))
->subject('Activate Raleigh Promise Account')
->send();
}
And I keep getting:
Could not send email
error: An Internal Error Has Occurred
Stack Trace
CORE\Cake\Network\Email\CakeEmail.php line 971 ?
MailTransport->send(CakeEmail)
APP\Controller\UsersController.php line 132 ? CakeEmail->send()
APP\Controller\UsersController.php line 61 ?
UsersController->sendActivation(string)
[internal function] ? UsersController->add()
CORE\Cake\Controller\Controller.php line 484 ?
ReflectionMethod->invokeArgs(UsersController, array)
CORE\Cake\Routing\Dispatcher.php line 104 ?
Controller->invokeAction(CakeRequest)
CORE\Cake\Routing\Dispatcher.php line 86 ?
Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
APP\webroot\index.php line 96 ? Dispatcher->dispatch(CakeRequest,
CakeResponse)
I know there has got to be a simple explanation.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php