Revert "Changes to improve testing (#9608)" (#9937)

This reverts commit d1a0ccda46.
This commit is contained in:
Tony Murray
2019-03-12 00:49:14 -05:00
committed by GitHub
parent d1a0ccda46
commit eb648a1d6f
43 changed files with 266 additions and 459 deletions

View File

@@ -998,7 +998,7 @@ function send_mail($emails, $subject, $message, $html = false)
}
$mail->send();
return true;
} catch (\PHPMailer\PHPMailer\Exception $e) {
} catch (phpmailerException $e) {
return $e->errorMessage();
} catch (Exception $e) {
return $e->getMessage();