Set Multipart Value
public set_alt_message ( $str ) : CI_Email | ||
return | CI_Email |
/** * Replacement of CI_Email send function * Added: App email data added to CI_Email (from, to, etc) before actual send. * * @return boolean Whether or not the email is sent */ public function send() { $valid = $this->_prepare_send(); if ($valid) { // set CI_Email parent::from($this->_data['from_email'], $this->_data['from_name']); parent::to($this->_data['to']); parent::subject($this->_data['subject']); parent::message($this->_data['message']); if (!empty($this->_data['alt_message'])) { parent::set_alt_message($this->_data['alt_message']); } $send = parent::send(); if ($send) { // log email $this->ci->load->library('app_log'); $this->ci->app_log->log('app_email', $this->_data['subject'] . ' (to: ' . $this->_data['to'][0] . ')'); } return $send; } else { // mail not send, see error for details return FALSE; } }