From e2a0da3dd2bb3f74d626f4369fc919e297761f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Mon, 22 Jun 2020 21:37:17 +0000 Subject: [PATCH] MAPG-164 use env variable for mail sender instead of hardcoded value --- src/Mailing/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mailing/Mail.php b/src/Mailing/Mail.php index 383659d..58befb0 100644 --- a/src/Mailing/Mail.php +++ b/src/Mailing/Mail.php @@ -65,8 +65,8 @@ class Mail $mailer->Mailer = 'mail'; } - $mailer->setFrom($_ENV['MAIL_FROM'], 'MapGuesser'); - $mailer->addReplyTo($_ENV['MAIL_FROM'], 'MapGuesser'); + $mailer->setFrom($_ENV['MAIL_FROM'], $_ENV['APP_NAME']); + $mailer->addReplyTo($_ENV['MAIL_FROM'], $_ENV['APP_NAME']); $mailer->Sender = !empty($_ENV['MAIL_BOUNCE']) ? $_ENV['MAIL_BOUNCE'] : $_ENV['MAIL_FROM']; $mailer->Subject = $this->subject;