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

Can't easily use to replace sendmail for PHP apps #2

Closed
geerlingguy opened this issue Jun 1, 2015 · 2 comments
Closed

Can't easily use to replace sendmail for PHP apps #2

geerlingguy opened this issue Jun 1, 2015 · 2 comments

Comments

@geerlingguy
Copy link

I'm trying to use mhsendmail as a sendmail replacement for some Drupal sites, and when I try sending emails using Drupal's built-in email functionality (with PHP's sendmail_path defined as /opt/mailhog/mhsendmail, where the binary is located), I get the following error in the logs:

flag provided but not defined: -femail@example.com
Usage of /opt/mailhog/mhsendmail:
  -from="nobody@example": SMTP sender
  -smtp-addr="localhost:1025": SMTP server address

It looks like mhsendmail expects a nice -from=address format, but Drupal (and many other PHP apps I've encountered use -faddress to provide a from email address.

Can you add support for this format, so mhsendmail can be more of a drop-in replacement for sendmail?

@ian-kent
Copy link
Member

ian-kent commented Jun 1, 2015

Thanks @geerlingguy - I'd assumed things like sendmail flags would be configurable, then I looked at the Drupal source... hope this fix works!

@geerlingguy
Copy link
Author

then I looked at the Drupal source...

Haha, for most things, Drupal's wonderfully configurable. But not sendmail :P

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

2 participants