Commit 306154f3 authored by Jakob P's avatar Jakob P
Browse files

Issue #3191046: Partially Revert "Issue #3174406 by Andrew Answer: Problem with Reply-To field"

parent f503f726
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -275,9 +275,9 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface {
    }

    // Updates $headers fields.
    $headers['sender'] = isset($headers['sender']) ? $headers['sender'] . ',' . $from : $from;
    $headers['return-path'] = isset($headers['return-path']) ? $headers['return-path'] . ',' . $from : $from;
    $headers['reply-to'] = isset($headers['reply-to']) ? $headers['reply-to'] . ',' . $from : $from;
    $headers['sender'] = $from;
    $headers['return-path'] = $from;
    $headers['reply-to'] = $from;

    // Defines the From value to what we expect.
    $mailer->From = $from;