A sendmail replacement which forwards mail to an SMTP server.
> go get github.com/mailhog/mhsendmail > mhsendmail email@example.com <<EOF From: App <firstname.lastname@example.org> To: Test <email@example.com> Subject: Test message Some content! EOF
You can also set the from address (for SMTP
./mhsendmail -from "firstname.lastname@example.org" email@example.com ...
Or pass in multiple recipients:
./mhsendmail -from "firstname.lastname@example.org" email@example.com firstname.lastname@example.org ...
Or override the destination SMTP server:
./mhsendmail -smtp-addr "localhost:1026" email@example.com ...
To use from php.ini
sendmail_path = /usr/local/bin/mhsendmail
Copyright © 2015, Ian Kent (http://iankent.uk)
Released under MIT license, see LICENSE for details.
There is no documentation for this package.