PHP mail by Laravel solved

tutorial for how to send mail by laravel 4.2
check this link
http://code.tutsplus.com/tutorials/sending-emails-with-laravel-4-gmail--net-36105





if you face the below problem check the below way 


the solving of this problem is 

1-
login to your gmail account
2-
access to this link 
https://www.google.com/settings/security/lesssecureapps
 and then choose 
Access for less secure apps 
turn on 

problem solved 
:)


if you faced this case

Using gmail smtp via Laravel: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

Try 
'encryption' => 'ssl',

'port' => 465,

I had the same problem and I resolved it in this way:
'driver' => 'sendmail',
You need to change only that line.



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 https://support.google.com/mail/answer/14257 l6sm346141wib.18 - gsmtp "

0 التعليقات :