Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@geerlingguy

Description

@geerlingguy

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: [email protected]
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions