-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mailhog + php fails with: "unknown shorthand flag: 'o' in -oi" #614
Comments
Yeah, here's the sendmail flag that php appears to be passing: Then I discovered that the latest official release of mhsendmail was in 2016, BEFORE they added support for the -oi flag. So it seems I need to build the latest mhsendmail from source. I tried to do that (following this thread) but no luck, since I don't have the go compiler inside devilbox, nor apt-get. Ok, now I'm stuck. ;-) |
Try installing the mhsendmail binary you want like: https://github.com/Tuurlijk/docker-php-fpm/blob/master/7.2/php/Dockerfile#L36 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@pnoeric will be addressed here: devilbox/docker-php-fpm#143 |
FYI: The new version of |
@cytopia thank you! 👍🏻 |
Hi, I've installed Mailhog per the instructions and it's working great (I can see it at localhost:8025 and send messages from the command line). However, the alias for sendmail that should override php and let the mail() function use mailhog is not working.
First, when I go into the shell and test mailhog, this works perfectly:
After I execute that, I can see the message at localhost:8025. All good there.
However, my php app fails with:
No idea what the '-o' flag is, but it appears to be passed from php to mhsendmail where it fails.
I did see that mhsendmail's most recent commit says:
Added -o option for compatibility
That was back in 2017. Could it be that an old version of mhsendmail is included with devilbox? I might try to figure out how I can update mhsendmail inside the box... hmmm...
FWIW I confirmed that I have the latest version of devilbox too:
The text was updated successfully, but these errors were encountered: