From: Johan Cwiklinski Date: Mon, 18 Nov 2019 22:16:58 +0000 (+0100) Subject: Always use reply-to when defined; closes #1349 X-Git-Tag: 0.9.3~18 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=27d39455b900b04bb784073beb375272e10e569d;p=galette.git Always use reply-to when defined; closes #1349 --- diff --git a/galette/lib/Galette/Core/GaletteMail.php b/galette/lib/Galette/Core/GaletteMail.php index 4438f4e4d..0472bf1a6 100644 --- a/galette/lib/Galette/Core/GaletteMail.php +++ b/galette/lib/Galette/Core/GaletteMail.php @@ -240,7 +240,11 @@ class GaletteMail ); // Add a Reply-To field in the mail headers. // Fix bug #6654. - $this->mail->AddReplyTo($this->getSenderAddress()); + if ($this->preferences->pref_email_reply_to) { + $this->mail->AddReplyTo($this->preferences->pref_email_reply_to); + } else { + $this->mail->AddReplyTo($this->getSenderAddress()); + } if ($this->html) {