I'm a newbie so I don't know about the mail log, but in the error log I get
Error: [MissingActionException] Action UsersController::js() could not be
found.
and
Error: [SocketException] Could not send email.
Which I don't know what they mean. I changed the email.php file to Mail
hoping that would help, but still getting the same error.
On Tuesday, March 6, 2012 3:55:37 PM UTC-5, cricket wrote:
>
> Have you checked the mail log?
>
> On Tue, Mar 6, 2012 at 3:53 PM, damanlovett wrote:
> > 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
>
--
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