AntonLV 5 ani în urmă
părinte
comite
60aff4a3e4
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      modules/boonex/notifications/classes/BxNtfsModule.php

+ 2 - 1
modules/boonex/notifications/classes/BxNtfsModule.php

@@ -461,8 +461,9 @@ class BxNtfsModule extends BxBaseModNotificationsModule
         if(!$aTemplate)
             return false;
 
+        $sEmail = BxDolProfileQuery::getInstance()->getEmailById($iProfile);
         $sSubject = !empty($aSettings['subject']) ? $aSettings['subject'] : $aTemplate['Subject'];
-        return sendMail($oAccount->getEmail(), $sSubject, $aTemplate['Body'], 0, array(), BX_EMAIL_NOTIFY, 'html', false, array(), true);
+        return sendMail($sEmail, $sSubject, $aTemplate['Body'], 0, array(), BX_EMAIL_NOTIFY, 'html', false, array(), true);
     }
 
     public function sendNotificationPush($iProfile, $aNotification)