Exemplo n.º 1
0
 protected static function sendUsingZendMailSMTP()
 {
     ProjectConfiguration::registerZend();
     require_once 'Zend/Mail.php';
     $config = array('auth' => 'login', 'username' => ProjectConfiguration::getSMTPUser(), 'password' => ProjectConfiguration::getSMTPPassword());
     if (ProjectConfiguration::getSMTPUseTLS()) {
         $config['ssl'] = 'tls';
     }
     $transport = new Zend_Mail_Transport_Smtp(ProjectConfiguration::getSMTPServer(), $config);
     return self::sendUsingZendMail($transport);
 }