コード例 #1
0
ファイル: multipart.php プロジェクト: Kervinou/OBM
 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);
 }
コード例 #2
0
ファイル: part.php プロジェクト: Kervinou/OBM
 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);
 }
コード例 #3
0
ファイル: mail.php プロジェクト: Kervinou/OBM
 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;
 }