Gmail locks account when sending mail via Laravel
问题 When I try to send an e-mail through my website running Laravel 4, I get this exception: 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 wd7sm12843789wjc.36 - gsmtp " Here is my mail config: return array( 'driver' => 'smtp', 'host' => 'smtp.gmail.com', 'port' => 465, 'from' => array('address' => 'mymail@gmail.com', 'name' => 'myname'), 'encryption' =>