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()); } } }
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()); } } }