• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmd/H16-Apr-2017-8462

vendor/H16-Apr-2017-3,2642,196

LICENSE.mdH A D16-Apr-20171.1 KiB2217

MakefileH A D16-Apr-2017226 159

README.mdH A D16-Apr-2017877 4731

main.goH A D16-Apr-201784 85

README.md

1mhsendmail
2==========
3
4A sendmail replacement which forwards mail to an SMTP server.
5
6```bash
7> go get github.com/mailhog/mhsendmail
8
9> mhsendmail test@mailhog.local <<EOF
10From: App <app@mailhog.local>
11To: Test <test@mailhog.local>
12Subject: Test message
13
14Some content!
15EOF
16```
17
18You can also set the from address (for SMTP `MAIL FROM`):
19
20```bash
21./mhsendmail --from="admin@mailhog.local" test@mailhog.local ...
22```
23
24Or pass in multiple recipients:
25
26```bash
27./mhsendmail --from="admin@mailhog.local" test@mailhog.local test2@mailhog.local ...
28```
29
30Or override the destination SMTP server:
31
32```bash
33./mhsendmail --smtp-addr="localhost:1026" test@mailhog.local ...
34```
35
36To use from php.ini
37
38```
39sendmail_path = /usr/local/bin/mhsendmail
40```
41
42### Licence
43
44Copyright ©‎ 2015 - 2016, Ian Kent (http://iankent.uk)
45
46Released under MIT license, see [LICENSE](LICENSE.md) for details.
47