mhsendmail

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2015 License: MIT Imports: 1 Imported by: 0

README

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:

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

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, Ian Kent (http://iankent.uk)

Released under MIT license, see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL