Last active
February 22, 2018 23:08
-
-
Save captbaritone/7407837 to your computer and use it in GitHub Desktop.
This is the mail configuration I use on Laravel to get it to send email to [MailCatcher](http://mailcatcher.me/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
// Send it mail via SMTP | |
'driver' => 'smtp', | |
// Whatever port you have MailCatcher's SMTP server running on (they suggest 1025) | |
'port' => 1025, | |
// The from address you would like your server to use | |
'from' => array('address' => '[email protected]', 'name' => 'Website Mailer Name'), | |
// This tripped me up for a while. Laravel defaults to 'tls', but that breaks MailCatcher. | |
// An empty string makes it use no encryption | |
'encryption' => '', | |
// Really send mail via SMTP (even though our server is pretend) | |
'pretend' => false, | |
); |
I know this was posted over a year ago, but just used this myself -- @JacobBennett, you just need to add the line:
'host' => '127.0.0.1'
,
Cheers for sharing this gist @captbaritone!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you using for the SMTP HOST ADDRESS portion of the config?