Commit a7b0e6bc authored by Wayne Eaker's avatar Wayne Eaker Committed by Adam Shepherd
Browse files

Issue #3269320 by zengenuity, AdamPS: MailManagerReplacement should respect the $send variable

parent eae2e069
Loading
Loading
Loading
Loading
+3 −1
Changes for modules/symfony_mailer_bc/src/MailManagerReplacement.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -71,9 +71,11 @@ class MailManagerReplacement extends MailManager {
      $email->setReplyTo($reply);
    }

    if ($send) {
      $result = $email->send();
    }
    // Set the 'send' element for Webform module.
    return ['result' => $result, 'send' => TRUE];
    return ['result' => $result, 'send' => $send];
  }

}