Last active
June 12, 2017 13:00
-
-
Save Luminus/e5d8149df1c70ef121f07cd42d36e2c1 to your computer and use it in GitHub Desktop.
Get MailCatcher to work with Nginx
This file contains hidden or 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
location ~ \.php$ { | |
fastcgi_param PHP_VALUE "sendmail_path=/usr/bin/env PATH/TO/catchmail -f [email protected]"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Laravel Valet as a local dev environment and needing to get MailCatcher to work.
Edit the Nginx conf for the site in question and include the
fastcgi_param
line within thelocation
directive.You'll want to use
which catchmail
to get the path to your catchmail install