Answer the question
In order to leave comments, you need to log in
Why does an error occur when sending mail for a domain?
here is the actual setting
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.yandex.ru',
'username' => '[email protected]',
'password' => 'password',
'port' => '587',
'encryption' => 'TLS',
],
],
Expected response code 250 but got code "553", with message "553 5.7.1 Sender address rejected: not owned by auth user."what am I doing wrong ?
Answer the question
In order to leave comments, you need to log in
I suggest - change the email in the param-local.php configs (if advanced - change in both applications)
<?php
return [
'adminEmail' => '[email protected]',
];
<?php
return [
'adminEmail' => '[email protected]',
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question