/** * Initialize the Email Data * * @access public * @return void */ function clear($clear_attachments = FALSE) { // patch for bug # 7826 // http://codeigniter.com/bug_tracker/bug/7826/ if ($this->_get_protocol() == "smtp") { $this->_cc_array = array(); $this->_bcc_array = array(); } parent::clear($clear_attachments); }
public function clear($clear_attachments = FALSE) { $clear_attachments = !empty($clear_attachments); parent::clear($clear_attachments); if ($this->mailer_engine == 'phpmailer') { $this->phpmailer->clearAllRecipients(); $this->phpmailer->clearReplyTos(); if ($clear_attachments) { $this->phpmailer->clearAttachments(); } $this->phpmailer->clearCustomHeaders(); $this->phpmailer->Subject = ''; $this->phpmailer->Body = ''; $this->phpmailer->AltBody = ''; } return $this; }
/** * Extends basic CI_Email clear function with app_email clear data. */ public function clear() { parent::clear(); // empty app_email specifics $this->_data = array(); }