diff --git a/classes/Mailer.class.php b/classes/Mailer.class.php index 269f49f..9d6d776 100644 --- a/classes/Mailer.class.php +++ b/classes/Mailer.class.php @@ -52,14 +52,13 @@ class Mailer function send ($mail, $subject, $data) { $this->headers .= "To: ".$mail."\r\n"; - $this->headers .= "Subject: ".$subject."\r\n"; foreach ($data as $key => $val) { $this->templater->assign($key, $val); } $message = $this->templater->fetch($this->template.'.tpl') . "\r\n\r\nС любовью @робот."; - + $encoded_subject = '=?UTF-8?B?' . base64_encode($subject) . "?=\r\n"; return mail($mail, $subject, $message, $this->headers); }