Skip to content

Instantly share code, notes, and snippets.

@Luminus
Last active June 12, 2017 13:00
Show Gist options
  • Save Luminus/e5d8149df1c70ef121f07cd42d36e2c1 to your computer and use it in GitHub Desktop.
Save Luminus/e5d8149df1c70ef121f07cd42d36e2c1 to your computer and use it in GitHub Desktop.
Get MailCatcher to work with Nginx
location ~ \.php$ {
fastcgi_param PHP_VALUE "sendmail_path=/usr/bin/env PATH/TO/catchmail -f [email protected]";
}
@Luminus
Copy link
Author

Luminus commented Jun 12, 2017

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 the location directive.

You'll want to use which catchmail to get the path to your catchmail install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment