Saturday, September 3, 2016

Sending Email Using SMTP-GMAIL in Laravel 5.3

I'm using xampp windows 7 for sending this email in laravel. Sooo... mmm... Let's get started... :D
1. Set-up your laravel environment, you can take a look at this post...
2. Create your own view, for me it's just as simple like this: :D :D
3. Change laravel config on .env file like this :

4. Next..... let's create our controller and route....


5. Turn off your antivirus{because I'm using port 587} in order to prevent SSL issue in windows 7 and then run your laravel server then hit the send button... :D aaaaan...d....
You will get the email....
Actually... If you got an error like username and password not accepted in gmail, then you can see my post here to solve it... ;)


Here is the demo...

Source code :
https://github.com/HyosokaPoipo/maillaravel53


Go to Part II...

No comments:

Post a Comment