Skip to content

Could not send email. #13

Description

@ipansensoy

Error: An Internal Error Has Occurred.

Stack Trace
CORE\Cake\Network\Email\CakeEmail.php line 972 → MailTransport->send(CakeEmail)
$this->_createBoundary();
$this->_message = $this->_render($this->_wrap($content));

    $contents = $this->transportClass()->send($this);

    if (!empty($this->_config['log'])) {

object(CakeEmail) {
charset => 'UTF-8'
headerCharset => 'UTF-8'
subject => 'Password reset from xxx.com'
}
APP\Plugin\sign_me_up\Controller\Component\SignMeUpComponent.php line 277 → CakeEmail->send()
$this->__setUpEmailParams($user);
if ($this->signMeUpEmailer->template($this->settings['password_reset_template'], $this->settings['email_layout'])) {
$this->signMeUpEmailer->subject = $this->settings['password_reset_subject'];
if ($this->signMeUpEmailer->send()) {

            return true;

APP\Plugin\sign_me_up\Controller\Component\SignMeUpComponent.php line 260 → SignMeUpComponent->__sendForgottenPassword(array)
if (!empty($user)) {
$user[$model][$password_reset_field] = md5(String::uuid());

        if ($this->controller->{$model}->save($user) && $this->__sendForgottenPassword($user[$model])) {

            if (!$this->controller->request->is('ajax')) {

array(
'password' => '*****',
'id' => '1',
'username' => 'AcidRainZ',
'email' => 'vladimirdevonshire@gmail.com',
'activation_code' => '5ef2e44b0be7dc5159cb5e45890611685e669e93',
'active' => null,
'password_reset' => '43677d4d665ecfb165a44a5d25010ecd',
'created' => '2012-07-19 18:55:21',
'modified' => '2012-07-19 18:55:21'
)
APP\Plugin\sign_me_up\Controller\Component\SignMeUpComponent.php line 216 → SignMeUpComponent->__requestNewPassword(array, string)
if (!empty($this->controller->request->params[$password_reset_field])) {
$this->__generateNewPassword($model);
} elseif (!empty($password_reset_field) && !empty($data['email'])) {
$this->__requestNewPassword($data, $model);

    }

array(
'email' => 'vladimirdevonshire@gmail.com'
)
'User'
APP\Controller\UsersController.php line 116 → SignMeUpComponent->forgottenPassword()
}

    public function forgotten_password() {

    $this->SignMeUp->forgottenPassword();

    }

[internal function] → UsersController->forgotten_password()
CORE\Cake\Controller\Controller.php line 485 → ReflectionMethod->invokeArgs(UsersController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);

object(UsersController) {
components => array(
)
name => 'Users'
uses => array(
)
helpers => array(
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Users'
layoutPath => null
viewVars => array()
view => 'forgotten_password'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array()
scaffold => false
methods => array(
)
modelClass => 'User'
modelKey => 'user'
validationErrors => null
Session => object(SessionComponent) {}
SignMeUp => object(SignMeUpComponent) {}
Auth => object(AuthComponent) {}
User => object(User) {}
}
array()
CORE\Cake\Routing\Dispatcher.php line 103 → Controller->invokeAction(CakeRequest)
$controller->startupProcess();

    $render = true;
    $result = $controller->invokeAction($request);

    if ($result instanceof CakeResponse) {

object(CakeRequest) {
params => array(
)
data => array(
)
query => array()
url => 'users/forgotten_password'
base => ''
webroot => '/'
here => '/users/forgotten_password'
}
CORE\Cake\Routing\Dispatcher.php line 85 → Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
));
}

    return $this->_invoke($controller, $request, $response);

}

object(UsersController) {
components => array(
)
name => 'Users'
uses => array(
)
helpers => array(
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Users'
layoutPath => null
viewVars => array()
view => 'forgotten_password'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array()
scaffold => false
methods => array(
)
modelClass => 'User'
modelKey => 'user'
validationErrors => null
Session => object(SessionComponent) {}
SignMeUp => object(SignMeUpComponent) {}
Auth => object(AuthComponent) {}
User => object(User) {}
}
object(CakeRequest) {
params => array(
)
data => array(
)
query => array()
url => 'users/forgotten_password'
base => ''
webroot => '/'
here => '/users/forgotten_password'
}
object(CakeResponse) {

}
APP\webroot\index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');

$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));

object(CakeRequest) {
params => array(
)
data => array(
)
query => array()
url => 'users/forgotten_password'
base => ''
webroot => '/'
here => '/users/forgotten_password'
}
object(CakeResponse) {

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions