[phpmailer] Use new emailer hook "sent" property #859

Merged
MrPetovan merged 3 commits from bug/7023-phpmailer-hooks into develop 2019-05-29 07:13:50 +02:00
Showing only changes of commit 4c0c4d4f33 - Show all commits

[phpmailer] Use new emailer hook "sent" property

Hypolite Petovan 2019-05-25 23:49:16 -04:00

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()]);
} }