[phpmailer] Use new emailer hook "sent" property

This commit is contained in:
Hypolite Petovan 2019-05-25 23:49:16 -04:00
parent c8001ac4c4
commit 4c0c4d4f33

View File

@ -97,7 +97,7 @@ function phpmailer_emailer_send_prepare(App $a, array &$b)
} }
} }
$mail->send(); $b['sent'] = $mail->send();
} catch (Exception $e) { } catch (Exception $e) {
$a->getLogger()->error('PHPMailer error', ['ErrorInfo' => $mail->ErrorInfo, 'code' => $e->getCode(), 'message' => $e->getMessage()]); $a->getLogger()->error('PHPMailer error', ['ErrorInfo' => $mail->ErrorInfo, 'code' => $e->getCode(), 'message' => $e->getMessage()]);
} }