mercredi 21 novembre 2018

Configure sender mail address in laravel env

Im using laravel 5.6 application to develope the project. In that project i have to send mail to the user. so i want to configure the sender mail address in env and mail.php file.

If it is for gmail then i will use like below in env file:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.io
MAIL_PORT=587
MAIL_USERNAME=vino@gmail.com
MAIL_PASSWORD=feaeda91d
MAIL_ENCRYPTION=TLS

Then in my mail.php:

'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),

But im not using gmails i want to use my office email address (vino123@xxx.in) and the domain name is mail.xxx.in so i dont know how to configure host, driver and port values in my env and mail.php file



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire