Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,11 @@ class MailManagerReplacement extends MailManager {
$email->setReplyTo($reply);
}
$result = $email->send();
if ($send) {
$result = $email->send();
}
// Set the 'send' element for Webform module.
return ['result' => $result, 'send' => TRUE];
return ['result' => $result, 'send' => $send];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment