From 5b89654a8c5dc1efd05efd54b991447e36f2e345 Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Sat, 8 May 2021 10:12:13 +0200 Subject: [PATCH] Set PHP's sendmail_path for Symfony binary --- php.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php.ini b/php.ini index bf793b9df..8bc794198 100644 --- a/php.ini +++ b/php.ini @@ -4,3 +4,7 @@ xdebug.client_port=9000 xdebug.client_host=127.0.0.1 xdebug.discover_client_host=false +# Use msmtp for sending email with MailHog when running with Symfony binary. +# Run `brew install msmtp` to install msmtp. +# Run `symfony open:local:webmail` to open the MailHog UI. +sendmail_path="/usr/local/bin/msmtp --host=${MAILHOG_HOST} --port=${MAILHOG_PORT} --read-recipients"