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 __construct(DateTime $date = null, $charset = 'UTF-8') { parent::__construct(); if ($date === null) { $tz = date_default_timezone_get(); $date = new DateTime('now', new DateTimeZone($tz)); } $this->date = $date; $this->charset = $charset; $this->recipients = array(); $this->set_default_headers(); }