Closed Zauberfisch closed 10 years ago
sed -ir "s@;\?sendmail_path =.*@sendmail_path = \"/usr/bin/env $(which mailcatcher) -f local\@host\"@" /etc/php5/apache2/php.ini
should be
sed -ir "s@;\?sendmail_path =.*@sendmail_path = \"/usr/bin/env $(which catchmail) -f local\@host\"@" /etc/php5/apache2/php.ini
oh god ...
thanks for the fast response.
No worries, hope it's working for you. :-)
working perfectly and making my life a lot easier - love it.
I mistakenly added "sendmail_path=/usr/local/bin/mailcatcher" to my "mailcatcher.ini" module file for PHP... and got the exact same troubling issue until I found this page... Changing it to "catchmail" was all it needed. D'oh! LOL Thanks for blazing my trail. :)
I am trying to setup php to use mailcatcher in my dev/test environment. However am facing a odd problem.
I solely work in virtual machines, and have managed to get it working in one. Unfortunately, the one it is working in is dirty and not reproduce able, as I have tested other mail catching alternatives before mailcatcher.
After I got it working in that test VM, I tried to apply it to my base box. But in the base box, php is not using mailcatcher.
Base box specs:
mailutils
installation of mailcatcher:
I have confirmed that mailcatcher is running and working (I can speak smtp with it using telnet, and the mails show up in the gui)
Because it is working in the dirty VM, I am assuming mailcatcher is missing some dependency in the clean VM that I have previously installed with some other package (eg postfix) on the dirty VM. Or perhaps I am just to tired and missing something obvious?
after some playing around I have also tried sending mails via cli, and am now getting the following error messages on the clean VM (works in dirty):
and: