You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you should log the details of what is in $e, the \Swift_TransportException it should show you the cause of the error. If you need further help, see below.
i have a app that send recorerypassword mail to client, when they forgot . i was working fine, but last week it´s start to throw a exception #406.
logs file have
exception 'yii\web\NotAcceptableHttpException' with message '......' in \yii2-user\models\AccountRecoverPasswordForm.php:51
Stack trace:
#0 \yii2-user\controllers\RecoveryController.php(54):
\user\models\AccountRecoverPasswordForm->recoverPassword()
#1 [internal function]:RecoveryController->actionRecoverPassword()
#2 D:\matarile\clubs\vendor\yiisoft\yii2\base\InlineAction.php(55): call_user_func_array(Array, Array)
#3 D:\matarile\clubs\vendor\yiisoft\yii2\base\Controller.php(154): yii\base\InlineAction->runWithParams(Array)
#4 D:\matarile\clubs\vendor\yiisoft\yii2\base\Module.php(454): yii\base\Controller->runAction('recover-passwor...', Array)
#5 D:\matarile\clubs\vendor\yiisoft\yii2\web\Application.php(84): yii\base\Module->runAction('user/recovery/r...', Array)
#6 D:\matarile\clubs\vendor\yiisoft\yii2\base\Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))
#7 D:\matarile\clubs\index.php(18): yii\base\Application->run()
#8 {main}
the line that send the exception it´s
try {
// Send Welcome Message to activate the account
Mailer::sendRecoveryMessage($user);
} catch (\Swift_TransportException $e) {
throw new NotAcceptableHttpException("..... "
. Yii::$app->config->get('movil', 'administrador'));
}
the rutine it´s
protected function sendMail($to, $subject, $view, $params = [])
{
$parametros = Configuration::getParam();
please help... don´t kwon what happen
The text was updated successfully, but these errors were encountered: