public function mailQueueProcess() { // Send mails from mail queue BOL_MailService::getInstance()->processQueue(); }
/** * Constructor. * */ private function __construct() { $this->maliService = BOL_MailService::getInstance(); }
public function onUserUnregisterClearMailQueue(OW_Event $event) { $params = $event->getParams(); $userId = (int) $params['userId']; BOL_MailService::getInstance()->deleteQueuedMailsByRecipientId($userId); }
public function ajaxSmtpTestConnection() { if (!OW::getRequest()->isAjax()) { throw new Redirect404Exception(); } try { $result = BOL_MailService::getInstance()->smtpTestConnection(); } catch (LogicException $e) { exit($e->getMessage()); } if ($result) { $responce = OW::getLanguage()->text('admin', 'smtp_test_connection_success'); } else { $responce = OW::getLanguage()->text('admin', 'smtp_test_connection_failed'); } exit($responce); }