_spool_email() protected method

Spool mail to the mail server
protected _spool_email ( ) : boolean
return boolean
Ejemplo n.º 1
0
 /**
  * Override _spool_email so we can provide a hook
  */
 function _spool_email()
 {
     // ------------------------------------------------------
     // 'email_send' hook.
     //  - Optionally modifies and overrides sending of email.
     //
     if (ee()->extensions->active_hook('email_send') === TRUE) {
         $ret = ee()->extensions->call('email_send', array('headers' => &$this->_headers, 'header_str' => &$this->_header_str, 'recipients' => &$this->_recipients, 'cc_array' => &$this->_cc_array, 'bcc_array' => &$this->_bcc_array, 'subject' => &$this->_subject, 'finalbody' => &$this->_finalbody));
         if (ee()->extensions->end_script === TRUE) {
             ee()->extensions->end_script = FALSE;
             return $ret;
         }
     }
     return parent::_spool_email();
 }