Support the ongoing development of Laravel.io →
Authentication Mail

i am using laravel 5.2 and php 5.6

.env

MAIL_DRIVER=smtp

MAIL_HOST=smtp.gmail.com

MAIL_PORT=465

MAIL_USERNAME=m.junaidmasood@gmail.com

MAIL_PASSWORD=****

MAIL_ENCRYPTION=ssl

mail.php

<?php return [ 'driver' => env('MAIL_DRIVER', 'smtp'), 'host' => env('MAIL_HOST', 'smtp.gmail.com'), 'port' => env('MAIL_PORT', 465), 'from' => ['address' => 'm.junaidmasood@gmail.com', 'name' => 'atyourpoint'], 'encryption' => env('MAIL_ENCRYPTION', 'ssl'), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'sendmail' => '/usr/sbin/sendmail -bs', ];
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

junaid junaid Joined 1 Aug 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.