X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=b7fe18a18fe4b6cb9e154f9b68e20dbd592b7cce;hb=e076998ffe7ed9e29c01463c10a0b36a49659e9d;hp=478b034e5f5bdb8b353b5eb1cd46a80b94a7daae;hpb=c6b45a958e3b09bc8f3950a718c181dfc9e0b910;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php index 478b034e5f..b7fe18a18f 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -550,13 +550,13 @@ function notification($params) 'title' => $title, 'body' => $body, 'subject' => $subject, + 'headers' => $emailBuilder->getHeaders(), ]; Hook::callAll('enotify_mail', $datarray); - $builder = DI::emailer() - ->newNotifyMail() - ->addHeaders($datarray['headers']) + $emailBuilder + ->withHeaders($datarray['headers']) ->withRecipient($params['to_email']) ->forUser([ 'uid' => $datarray['uid'],