mention using sendmail and PHP config

This commit is contained in:
Ian Kent 2017-04-17 00:05:33 +01:00
parent 2789ba59d7
commit 82292eb102
No known key found for this signature in database
GPG key ID: CE5AC689AF520A48

View file

@ -60,6 +60,19 @@ It redirects mail to MailHog using SMTP.
You can also use `MailHog sendmail ...` instead of the separate mhsendmail binary. 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 #### Web UI
![Screenshot of MailHog web interface](/docs/MailHog.png "MailHog web interface") ![Screenshot of MailHog web interface](/docs/MailHog.png "MailHog web interface")