Skip to content
Snippets Groups Projects
Commit f5b387db authored by Paul Mrvik's avatar Paul Mrvik
Browse files

Issue #3489792 by globexplorer: Mail Reply to not working

parent 19ffaad4
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ final class NotificationFactory {
$conditional_notifications = $this->entityTypeManager
->getStorage('conditional_notification')
->loadByProperties($conditions);
if (!empty($conditional_notifications)) {
foreach ($conditional_notifications as $notification) {
// Only process enabled notifications.
......
......@@ -194,13 +194,16 @@ final class NotificationQueue extends QueueWorkerBase implements ContainerFactor
// Add reply to address if configured
if ($mail_reply_to = $this->helper->mailReplyToAvailable($conditional_notification)) {
$context['reply-to'] = $mail_reply_to;
$reply = $mail_reply_to;
}
else {
$reply = NULL;
}
// Sending Email
$delivered = $this->mailManager->mail('system', 'action_send_email', $user_mail, $langcode, [
'context' => $context
]);
], $reply);
// Prepare logging data.
$logging_data = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment