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.
0 التعليقات :