Exemple #1
0
 /**
  * Get system mail instance
  *
  * @return Ht_Mail Mailer include system configuration
  */
 public static function getMailer()
 {
     if (null == self::$_mailer) {
         $config = self::getConfiguration(self::CONFIGURATION_TYPE_MAIL);
         $host = $config->smtp->hostname;
         $port = $config->smtp->config->port;
         $configArr = $config->smtp->config->toArray();
         Zend_Loader::loadClass("Ht_Mail");
         self::$_mailer = Ht_Mail::getInstance($host, $port, $configArr);
     }
     return self::$_mailer;
 }