-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PHP Configuration hints #99
Comments
mailhog/mhsendmail#3 should have fixed it, assuming you have a It could be worth adding some documentation to mention it - PHP config is mentioned in the mhsendmail readme, but currently without the e-mail address in the path |
Hmm, maybe a new release for mhsendmail is the key fix? Note that I couldn't get mailhog 0.2.0 to work without the gratuitous [email protected], but it works fine with it. |
It might be that (really need to fix #71!), but if you've tried the I'll do a new release after I've got through some open issues, hopefully that'll fix it! |
OK, thanks for your work on this. MailHog is awesome. A real step forward in my dev workflow. Love the "delete all". |
Thanks @rfay, and no problem, glad its useful 😄 |
A tip to anyone wondering how to use Mailhog if it's running on a separate instance (not the php server) - for example on a separate docker container. All you need to do is modify the sendmail_path on php server to include -S option:
Where "mail" is the alias of my container running Mailhog. |
👍 thanks for the info, I've added the info to the MailHog README including a php.ini example |
I would like to add that using sendmail in debian docker containers seem to have issues. A good replacement is ssmtp. Install using ssmtp can be configured to use mailhog by editing
PHP can then be configured in php.ini like so: Some more details on ssmtp can be found here This worked for me. I hope someone finds it useful |
I had loads of trouble trying to get MailHog (with or without mhsendmail) to work with php-fpm (MacOS, homebrew, php5.6, mailhog 0.2)
I finally got it going with this in php.ini:
sendmail_path = "/usr/local/bin/mailhog sendmail [email protected]"
I can do a PR to add that simple recipe to the docs if you'll direct me where to put it.
(I do see that hint in mailhog/mhsendmail#3 (comment), which is where I got it, but that was closed.)
The text was updated successfully, but these errors were encountered: