Skip to content

Instantly share code, notes, and snippets.

@Luminus
Last active June 12, 2017 13:00
Show Gist options
  • Select an option

  • Save Luminus/e5d8149df1c70ef121f07cd42d36e2c1 to your computer and use it in GitHub Desktop.

Select an option

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 admin@wctest.dev";
}
@Luminus

Luminus commented Jun 12, 2017

Copy link
Copy Markdown
Author

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