Loomix
5 months ago
5566
38
Laravel

"554 5.5.1 Error: no valid recipients" on password reset

Posted 5 months ago by Loomix

I just installed a fresh Laravel with laravel new projectname --auth to test this on a clean install: The pw reset function gives me Swift_TransportException: Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients ". So I tested and verified the credentials of 3 different mailaccounts (from 3 different providers) and they all work fine for sending mails in Thunderbird but not in Laravel, so I guess the data for my mailaccounts is fine. I also tested my googlemail account which also works fine but throws the same error in Laravel.

My config/mail.php:

return [
    'default' => env('MAIL_MAILER', 'smtp'),
    'mailers' => [
        'smtp' => [
            'transport' => 'smtp',
            'host' => env('MAIL_HOST', 'w01199f1.xxxserver.com'),
            'port' => env('MAIL_PORT', 587),
            'encryption' => env('MAIL_ENCRYPTION', 'tls'),
            'username' => env('MAIL_USERNAME'),
            'password' => env('MAIL_PASSWORD'), 
            'timeout' => null,
            'auth_mode' => null,
        ],
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', '[email protected]'),
        'name' => env('MAIL_FROM_NAME', 'xxx'),
    ],
];

My .env:

MAIL_DRIVER=smtp
MAIL_HOST=w01199f1.xxxxerver.com
MAIL_PORT=587
MAIL_USERNAME=mx5xxxe41
MAIL_PASSWORD=xxxxxx
[email protected]
MAIL_FROM_NAME="xxx"
MAIL_ENCRYPTION=tls

Maybe it's because I am developing on localhost with WAMP and there's something I need to configure before I can send mails from my localhost Laravel app? Like I said, this is all vanilla Laravel install from today. Can anyone tell me why pw reset throws this error? Thanks.

Please sign in or create an account to participate in this conversation.