almazik
201
13
General

[HELP] email doesn't get sent with gmail smtp

Posted 4 years ago by almazik

Hi everyone.

I'm trying to send email from my application but getting the following error: Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 kz7sm4622758lac.10 - gsmtp "

my app/config.mail.php looks like this:


'driver' => 'smtp', 'host' => 'smtp.gmail.com', 'port' => 587, 'from' => array('address' => 'xmalinkoff@gmail.com', 'name' => 'Andrew Malinkoff'), 'encryption' => 'tls', 'username' => 'username@gmail.com', 'password' => 'my pass', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false,

Any thoughts?

credentials are correct, I tried to use different ones several times

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.