Merged in bugfix/MAPG-164-fix-mail-sender (pull request #134)
MAPG-164 use env variable for mail sender instead of hardcoded value
This commit is contained in:
commit
05b1a84168
@ -65,8 +65,8 @@ class Mail
|
|||||||
$mailer->Mailer = 'mail';
|
$mailer->Mailer = 'mail';
|
||||||
}
|
}
|
||||||
|
|
||||||
$mailer->setFrom($_ENV['MAIL_FROM'], 'MapGuesser');
|
$mailer->setFrom($_ENV['MAIL_FROM'], $_ENV['APP_NAME']);
|
||||||
$mailer->addReplyTo($_ENV['MAIL_FROM'], 'MapGuesser');
|
$mailer->addReplyTo($_ENV['MAIL_FROM'], $_ENV['APP_NAME']);
|
||||||
|
|
||||||
$mailer->Sender = !empty($_ENV['MAIL_BOUNCE']) ? $_ENV['MAIL_BOUNCE'] : $_ENV['MAIL_FROM'];
|
$mailer->Sender = !empty($_ENV['MAIL_BOUNCE']) ? $_ENV['MAIL_BOUNCE'] : $_ENV['MAIL_FROM'];
|
||||||
$mailer->Subject = $this->subject;
|
$mailer->Subject = $this->subject;
|
||||||
|
Loading…
Reference in New Issue
Block a user