I setup MailCatcher for a local PHP mails delivery but messages won’t get delivered. After googling, I found an error in Apache log:
env: catchmail: No such file or directory
Now, I figured out that I need to enter the full path to catchmail executable. I executed this command:
which catchmail
the output was: /usr/local/bin/catchmail
Then updated the php.ini sendmail_path entry to:
sendmail_path = /usr/bin/env /usr/local/bin/catchmail -f some@example.com
And restarted Apache, and emails started showing up in the MailCatcher window 🙂
Thanks, works like a charm in OS X El Capitan and XAMPP!