Support the ongoing development of Laravel.io →
Blade Mail

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?

Last updated 3 years ago.
0

#Laravel supports sending email over SMTP. To have laravel relay email through Pepipost, follow the below steps:

#Step 1 – Register Pepipost Account

  • Go to https://pepipost.com
  • Click Try Pepipost Now
  • Fill all the necessary details
  • Wait for a email from Pepipost conforming that your account is provisioned.

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

0

Change your .env like this

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=test@gmail.com
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.