]> git.mxchange.org Git - friendica.git/commitdiff
Adds optional parameter 'uid' to Emailer::send()
authorfabrixxm <fabrix.xm@gmail.com>
Mon, 29 Dec 2014 15:04:51 +0000 (16:04 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 29 Dec 2014 15:04:51 +0000 (16:04 +0100)
that is the user id of the recipient of the mail.
Make enotify pass it to Emailer::send()

include/Emailer.php
include/enotify.php

index f61636d959ccf72c0205ffa3534934a5e28d84e3..3c0f4047c612a864266db5d7a7e2edd54771f9da 100644 (file)
@@ -14,6 +14,7 @@ class Emailer {
         * @param htmlVersion           html version of the message
         * @param textVersion           text only version of the message
         * @param additionalMailHeader  additions to the smtp mail header
+        * @param optional uid      user id of the destination user
         */
        static public function send($params) {
 
index 8b5002cb2a75791f16cd90a74e5953739d4fd8ee..99bc0fd324a260ce2238a877bcec64e8eadf5945 100644 (file)
@@ -598,6 +598,7 @@ function notification($params) {
                // use the Emailer class to send the message
 
                return Emailer::send(array(
+                       'uid' => $params['uid'],
                        'fromName' => $sender_name,
                        'fromEmail' => $sender_email,
                        'replyTo' => $sender_email,