let the cannon jsut log an error, not throw it - seems uncatchable

This commit is contained in:
Ulf Gebhardt 2019-12-19 12:36:36 +01:00
parent 9362ebeaaf
commit 627134c651
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -40,7 +40,9 @@ class mailcannon {
$recipients = array( 'To' => $to);
$succ = $mail->send($recipients, $hdrs, $body);
if (PEAR::isError($succ)) {
throw new \SYSTEM\LOG\ERROR($succ);}
new \SYSTEM\LOG\ERROR($succ);
return false;
}
return true;
}