From f1e73dded7087990e9a2b2aebae60c385f41485d Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Fri, 13 Feb 2009 13:48:12 +0000 Subject: [PATCH] fixed subject git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@62 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Mailer.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }