예제 #1
0
파일: File.php 프로젝트: btweedy/foresmo
 /**
  * 
  * 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;
 }
예제 #2
0
파일: Message.php 프로젝트: kalkin/solarphp
 /**
  * 
  * 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);
 }