From 4c0c4d4f3357bf3a427097e2bfead28702a38ced Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 25 May 2019 23:49:16 -0400 Subject: [PATCH] [phpmailer] Use new emailer hook "sent" property --- phpmailer/phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpmailer/phpmailer.php b/phpmailer/phpmailer.php index cd86a836..9e907774 100644 --- a/phpmailer/phpmailer.php +++ b/phpmailer/phpmailer.php @@ -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()]); } -- 2.39.5