예제 #1
0
 /**
  * Do a special trick to set the localDomain using the domain key.
  *
  * @see li3_swiftmailer\mailer\Transport::_config()
  */
 protected function _config()
 {
     parent::_config();
     if (isset($this->_config['domain'])) {
         $transport = $this->get_transport();
         $transport->setLocalDomain($this->_config['domain']);
     }
 }
예제 #2
0
 protected function _init()
 {
     $this->_classes += array('transport' => '\\Swift_SendmailTransport');
     return parent::_init();
 }