• Stars
    star
    243
  • Rank 166,541 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

sendmail for MailHog

mhsendmail

A sendmail replacement which forwards mail to an SMTP server.

> go get github.com/mailhog/mhsendmail

> mhsendmail [email protected] <<EOF
From: App <[email protected]>
To: Test <[email protected]>
Subject: Test message

Some content!
EOF

You can also set the from address (for SMTP MAIL FROM):

./mhsendmail --from="[email protected]" [email protected] ...

Or pass in multiple recipients:

Or override the destination SMTP server:

./mhsendmail --smtp-addr="localhost:1026" [email protected] ...

To use from php.ini

sendmail_path = /usr/local/bin/mhsendmail

Licence

Copyright ©‎ 2015 - 2016, Ian Kent (http://iankent.uk)

Released under MIT license, see LICENSE for details.