public function __construct($subtype = self::ALTERNATIVE, $parts = array(), $boundary = null) { parent::__construct(); $this->subtype = $subtype; $this->parts = $parts; $this->preamble = 'This is a multi-part message in MIME format.'; $this->set_boundary($boundary); }
public function __construct($content = '', $content_type = 'text/plain', $encoding = '8bit', $charset = 'UTF-8') { parent::__construct(); $this->content = $content; $this->charset = $charset; $this->set_content_type($content_type, array('charset' => $charset)); $this->set_encoding($encoding); }
public function get_non_matching_header_lines(array $names) { $lines = parent::get_non_matching_header_lines($names); if (is_object($this->content)) $lines.= $this->eol.$this->content->get_non_matching_header_lines($names); return $lines; }