Skip to content

About

sendmail for MailHog

Resources

Stars

274 stars

Watchers

12 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mhsendmail

A sendmail replacement which forwards mail to an SMTP server.

> go get github.com/mailhog/mhsendmail

> mhsendmail test@mailhog.local <<EOF
From: App <app@mailhog.local>
To: Test <test@mailhog.local>
Subject: Test message

Some content!
EOF

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

./mhsendmail --from="admin@mailhog.local" test@mailhog.local ...

Or pass in multiple recipients:

./mhsendmail --from="admin@mailhog.local" test@mailhog.local test2@mailhog.local ...

Or override the destination SMTP server:

./mhsendmail --smtp-addr="localhost:1026" test@mailhog.local ...

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.

About

sendmail for MailHog

Resources

Stars

274 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages