From 541520fa4aef50411ee3a9fe161fafba79355502 Mon Sep 17 00:00:00 2001 From: origami11 Date: Thu, 9 Feb 2017 14:21:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B8=D0=BF=20=D1=81=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=D1=80=D0=B6=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=87=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/database_pdo.php | 1 + core/mail.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/database_pdo.php b/core/database_pdo.php index 21c1285..0bf3999 100644 --- a/core/database_pdo.php +++ b/core/database_pdo.php @@ -201,6 +201,7 @@ class PDODatabaseStatement extends PDOStatement implements IteratorAggregate { protected $cursorPos = 0; public $cache = array(); + public $fields; function getIterator() { diff --git a/core/mail.php b/core/mail.php index 53fa161..3bd2ef1 100644 --- a/core/mail.php +++ b/core/mail.php @@ -17,6 +17,7 @@ class Mail protected $attachment = array (); protected $uniqid; + protected $type = "text/plain"; function __construct() { $this->setEncoding("UTF-8"); @@ -70,6 +71,11 @@ class Mail $this->content = $text; } + function setType($type) + { + $this->type = $type; + } + /** * Кодировка текста в письме */ @@ -134,7 +140,7 @@ class Mail function getMessage() { $message = "--".$this->uniqid . PHP_EOL; - $message .= $this->mimeTag("Content-Type", "text/plain", array ('charset' => $this->encoding)); + $message .= $this->mimeTag("Content-Type", $this->type, array ('charset' => $this->encoding)); $message .= $this->mimeTag("Content-Transfer-Encoding", "8bit"); $message .= PHP_EOL . $this->content . PHP_EOL . PHP_EOL;