S
S
Sergey Beloventsev2017-10-10 19:23:55
Yii
Sergey Beloventsev, 2017-10-10 19:23:55

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',
            ],
        ],

I get this answer
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

2 answer(s)
M
Maxim Fedorov, 2017-10-10
@Maksclub

I suggest - change the email in the param-local.php configs (if advanced - change in both applications)

<?php
return [
    'adminEmail' => '[email protected]',
];

replaced by:
<?php
return [
    'adminEmail' => '[email protected]',
];

because it is substituted in the senders, but it is necessary that [email protected] be, these are the requirements of Yandex , I
also ran into a week ago, then I generated letters into files and saw the wrong sender there :)

N
nepster-web, 2017-10-10
@nepster-web

Google badly:
fkn.ktu10.com/?q=node/8141

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question