Exemplo n.º 1
0
 public function processNotification(AJXP_Notification &$notification)
 {
     $mailer = AJXP_PluginsService::getInstance()->getActivePluginsForType("mailer", true);
     if ($mailer !== false) {
         try {
             $mailer->sendMail(array($notification->getTarget()), $notification->getDescriptionShort(), $notification->getDescriptionLong(), $notification->getAuthor(), $notification->getMainLink());
         } catch (Exception $e) {
             $this->logError("Exception", $e->getMessage(), $e->getTrace());
         }
     }
 }
Exemplo n.º 2
0
 public function processNotification(AJXP_Notification &$notification)
 {
     $mailers = AJXP_PluginsService::getInstance()->getPluginsByType("mailer");
     if (count($mailers)) {
         $mailer = array_pop($mailers);
         try {
             $mailer->sendMail(array($notification->getTarget()), $notification->getDescriptionShort(), $notification->getDescriptionLong(), $notification->getAuthor(), $notification->getMainLink());
         } catch (Exception $e) {
             $this->logError("Exception", $e->getMessage(), $e->getTrace());
         }
     }
 }