system/libraries/Email.php
/**
			* Write Headers as a string
			*
			* @return	void
			*/
Write Headers as a string
@return       void
Write Headers as a string @return void
protected function _write_headers()
			{
				if ($this->protocol === 'mail')
				{
					if (isset($this->_headers['Subject']))
					{
						$this->_subject = $this->_headers['Subject'];
						unset($this->_headers['Subject']);
					}
				}
				reset($this->_headers);
				$this->_header_str = '';
				foreach ($this->_headers as $key => $val)
				{
					$val = trim($val);
					if ($val !== '')
					{
						$this->_header_str .= $key.': '.$val.$this->newline;
					}
				}
				if ($this->_get_protocol() === 'mail')
				{
					$this->_header_str = rtrim($this->_header_str);
				}
			}
protected function _write_headers ( ) { if ( $ this -> protocol === 'mail' ) { if ( isset ( $ this -> _headers [ 'Subject' ] ) ) { $ this -> _subject = $ this -> _headers [ 'Subject' ] ; unset ( $ this -> _headers [ 'Subject' ] ) ; } } reset ( $ this -> _headers ) ; $ this -> _header_str = '' ; foreach ( $ this -> _headers as $ key => $ val ) { $ val = trim ( $ val ) ; if ( $ val !== '' ) { $ this -> _header_str .= $ key . ': ' . $ val . $ this -> newline ; } } if ( $ this -> _get_protocol ( ) === 'mail' ) { $ this -> _header_str = rtrim ( $ this -> _header_str ) ; } }
Write Headers as a string
 @return       void
Write Headers as a string @return void