> I'm a newbie so I don't know about the mail log
I meant the server's mail log, not Cake's.
> but in the error log I get
>
> Error: [MissingActionException] Action UsersController::js() could not be
> found.
Do you have a method js() in UsersController? But that looks like
something that'd be in a layout or view. Are you sure your email views
& layouts are correct?
> and
> Error: [SocketException] Could not send email.
Look in Cake/Network/Email/MailTransport.php for the 2 lines that
throw that exception. If you want, change the message slightly
(different for each) to figure out where the exception is being
thrown. eg. 'Could not send email. 1' & 'Could not send email. 2'.
Don't forget to change them back.
You could also write a simple non-Cake PHP script to send a msg with
the mail() function and see if that works. If not, it' not a Cake
problem.
But I suspect that the first exception being thrown may be causing the second.
> 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('eddie@xxxxxxxx.org'))
>> > ->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
>> > cake-php+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment