Exemple #1
0
 /**
  * 
  * Sets the default directory to write emails to (the temp dir).
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (Solar::$system) {
         $tmp = Solar::$system . '/mail/';
     } else {
         $tmp = Solar_Dir::tmp('/Solar_Mail_Transport_Adapter_File/');
     }
     $this->_Solar_Mail_Transport_Adapter_File['dir'] = $tmp;
 }
Exemple #2
0
 /**
  * 
  * If a transport dependency has been injected, use it to send this email.
  * 
  * @return bool True on success, false on failure.
  * 
  * @throws Solar_Mail_Message_Exception_NoTransport
  * 
  */
 public function send()
 {
     if (!$this->_transport) {
         throw $this->_exception('ERR_NO_TRANSPORT');
     }
     return $this->_transport->send($this);
 }