smtp-catcher icon indicating copy to clipboard operation
smtp-catcher copied to clipboard

Problems with local mail() on php 7.2 on macos

Open Web-Dezign opened this issue 5 years ago • 1 comments

I use your script a lot and thanks for it. Since i updated to php7.2 there is a problem with the mail command.

Mails are not send anymore. I solved the problem by symlinking /usr/local/sendmail to the smtp-catcher.php Adding the new sendmail path into php.ini sendmail_path = /usr/local/sendmail fixed the problem and everything works fine again.

maybe this is helpful for others.

kind regards Tobi

Web-Dezign avatar Jul 09 '20 09:07 Web-Dezign

I also had problems with sending after I updated do macOS 10.15.7 with a MAPM 6. Apache would throw me the error:

sudo: gid=4294967295: invalid value
sudo: unable to initialize policy plugin

So this was a tough one for me and took half a day to localize - so here's my solution: set sendmail-path in your active php.ini to your local smtp_catcher.php file and remove any options like this: sendmail_path =/Users/your_user_name/smtp_out/smtp_catcher.php (don't forget to reststart MAMP for this change to become effective) revert sudoers list to vanilla in /private/etc

Greetings Matthias

maffi-git avatar Oct 27 '20 11:10 maffi-git