[phpmailer] Use new emailer hook "sent" property
This commit is contained in:
parent
c8001ac4c4
commit
4c0c4d4f33
|
@ -97,7 +97,7 @@ function phpmailer_emailer_send_prepare(App $a, array &$b)
|
|||
}
|
||||
}
|
||||
|
||||
$mail->send();
|
||||
$b['sent'] = $mail->send();
|
||||
} catch (Exception $e) {
|
||||
$a->getLogger()->error('PHPMailer error', ['ErrorInfo' => $mail->ErrorInfo, 'code' => $e->getCode(), 'message' => $e->getMessage()]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user