mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 08:14:04 +00:00
mention using sendmail and PHP config
This commit is contained in:
parent
2789ba59d7
commit
82292eb102
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -60,6 +60,19 @@ It redirects mail to MailHog using SMTP.
|
|||
|
||||
You can also use `MailHog sendmail ...` instead of the separate mhsendmail binary.
|
||||
|
||||
Alternatively, you can use your native `sendmail` command by providing `-S`, for example:
|
||||
|
||||
```
|
||||
/usr/sbin/sendmail -S mail:1025
|
||||
```
|
||||
|
||||
For example, in PHP you could add either of these lines to `php.ini`:
|
||||
|
||||
```
|
||||
sendmail_path = /usr/local/bin/mhsendmail
|
||||
sendmail_path = /usr/sbin/sendmail -S mail:1025
|
||||
```
|
||||
|
||||
#### Web UI
|
||||
|
||||
![Screenshot of MailHog web interface](/docs/MailHog.png "MailHog web interface")
|
||||
|
|
Loading…
Reference in a new issue