Skip to content
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 incompatibility with Symfony #1

Open
tobiasmuehl opened this issue Jun 2, 2017 · 0 comments
Open

MailHog incompatibility with Symfony #1

tobiasmuehl opened this issue Jun 2, 2017 · 0 comments

Comments

@tobiasmuehl
Copy link

Symfony uses Swiftmailer, which will try to call /usr/sbin/sendmail by default.

/usr/sbin/sendmail is not symlinked by ScotchBox, but even if you manually add the link it doesn't work. Swiftmail will default the sendmail flag to -bs, which is currently unsupported by mhsendmail. I've opened an issue in the mhsendmail repo, but in the meanwhile this fix worked for me:

$ cat /usr/sbin/sendmail

#!/usr/bin/python

import sys
import subprocess

args = sys.argv[1:]
if '-bs' in args: args.remove('-bs')
cmd = ['/usr/bin/sendmail'] + args;
subprocess.call(cmd)


$ sudo cmhod +x /usr/sbin/sendmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant