diff --git a/module/VuFind/src/VuFind/Controller/FeedbackController.php b/module/VuFind/src/VuFind/Controller/FeedbackController.php index dfe12cbdf8f0ef478014365c429d077f84c79a81..1e95855084589db7f890fbc357361ec0d02f7752 100644 --- a/module/VuFind/src/VuFind/Controller/FeedbackController.php +++ b/module/VuFind/src/VuFind/Controller/FeedbackController.php @@ -150,6 +150,9 @@ class FeedbackController extends AbstractBase ) { try { $mailer = $this->serviceLocator->get('VuFind\Mailer\Mailer'); + if ($replyToEmail) { + $mailer->setFromAddressOverride(''); + } $mailer->send( new Address($recipientEmail, $recipientName), new Address($senderEmail, $senderName),