I cannot send mail through laravel. I have changed the .env file, mail file and also changed the smtp,host,port,username,password in every file... This mail isn't even being sent through the predefined "forgot password" link, but there is "Your reset message has been sent in mail" , but there isn't any mail in my account. Can i get a list of steps on what to change and where to change? I've read the documentation and my friend suggested me that guzzle isn't required as of now, so i havent installed it yet. If it should be installed, how do i run the composer.json once i copied the statement in the file?
#Laravel supports sending email over SMTP. To have laravel relay email through Pepipost, follow the below steps:
#Step 1 – Register Pepipost Account
Cool,you are ready to go!
#Step 2 – Change mail configurations in .env and mail.php files
Open .env located at root of the application, edit the file as below
MAIL_DRIVER=smtp
MAIL_HOST=smtp.pepipost.com
MAIL_PORT=587
MAIL_USERNAME=pepipostUsername
MAIL_PASSWORD=pepipostPassword
Now open mail.php located in /config/mail.php.
Edit the file as below:
<?php
return [
'driver' => 'smtp',
'host' => 'smtp.pepipost.com',
'port' => 587,
'encryption' => 'tls',
'username' => 'pepipostUsername',
'password' => 'pepipostPassword',
'sendmail' => '/usr/sbin/sendmail -bs'
];
#Step 3 – Send emails the way you want
Ref : http://laravel.io/forum/06-06-2016-how-to-send-transactional-emails-using-pepipost-in-laravel
Change your .env like this
MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=test@gmail.com
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community