From 82292eb102f54e400d93f6e8b27aac906647df81 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Mon, 17 Apr 2017 00:05:33 +0100 Subject: [PATCH] mention using sendmail and PHP config --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index cc58d88..1edfee7 100644 --- a/README.md +++ b/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")