Commit 7e636f3c authored by Jonathan Sacksick's avatar Jonathan Sacksick
Browse files

Issue #3250480 by balis_m, jsacksick: Fix undefined index to in onMailSend()...

Issue #3250480 by balis_m, jsacksick: Fix undefined index to in onMailSend() when sending emails using the Symfony mailer module.
parent eaf9a7c9
Loading
Loading
Loading
Loading
+3
Changes for src/MailHandler.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -100,6 +100,9 @@ class MailHandler implements MailHandlerInterface {
    }

    $message = $this->mailManager->mail('commerce', $params['id'], $to, $params['langcode'], $params, $params['reply-to']);
    // When Symfony mailer is used for sending emails, the "to" key isn't
    // present in the message array returned.
    $message += ['to' => $to];

    // Revert back to the original active language.
    if ($params['langcode'] != $default_params['langcode']) {