mardi 29 mai 2018

Laravel 5.5 Expected response code 250 but got code "530"

I know it is a duplicate issue in StackOverFlow however, I'm done all the remedies discussed there but still no luck. I'm using mailtrap.io using my GMail account. Here is the .env file and mail.php (under config):

.env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=XXXX
MAIL_PASSWORD=XXXX
MAIL_ENCRYPTION=tls

mail.php

'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.gmail.org'),
'port' => env('MAIL_PORT', 2525),
'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'niladriXXX@XXX.com'),
        'name' => env('MAIL_FROM_NAME', 'Niladri Banerjee'),
    ],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
    'sendmail' => '/usr/sbin/sendmail -t -i',
'markdown' => [
        'theme' => 'default',

        'paths' => [
            resource_path('views/vendor/mail'),
        ],
    ],

After submitting the valid email from forgot password screen, it throws the following error:

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "

Please note: I have already ON 'Allow less secure apps' from "Sign-in & security" from my GMail.

Seeking your help.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JhlYxm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire