Skip to content

PortailPro/mhsendmail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mhsendmail

A sendmail replacement which forwards mail to an SMTP server.

> go get github.com/PortailPro/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) Copyright ©‎ 2021, Portailpro (https://www.portailpro.net)

Released under MIT license, see LICENSE for details.

About

sendmail for MailHog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.6%
  • Makefile 8.4%