From: Hypolite Petovan Date: Sun, 26 May 2019 03:49:16 +0000 (-0400) Subject: [phpmailer] Use new emailer hook "sent" property X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c0c4d4f3357bf3a427097e2bfead28702a38ced;p=friendica-addons.git [phpmailer] Use new emailer hook "sent" property --- 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()]); }