]> git.mxchange.org Git - friendica-addons.git/commitdiff
[phpmailer] Use new emailer hook "sent" property
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 May 2019 03:49:16 +0000 (23:49 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 27 May 2019 02:07:22 +0000 (22:07 -0400)
phpmailer/phpmailer.php

index cd86a836ae93f7df3e0545b9b763ba362a3cf56f..9e907774e30d635efa05ad3f0f0cd743f151607a 100644 (file)
@@ -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()]);
        }