Browse Source

fixed subject

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@62 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 16 years ago
parent
commit
f1e73dded7
  1. 3
      classes/Mailer.class.php

3
classes/Mailer.class.php

@ -52,14 +52,13 @@ class Mailer
function send ($mail, $subject, $data) function send ($mail, $subject, $data)
{ {
$this->headers .= "To: ".$mail."\r\n"; $this->headers .= "To: ".$mail."\r\n";
$this->headers .= "Subject: ".$subject."\r\n";
foreach ($data as $key => $val) { foreach ($data as $key => $val) {
$this->templater->assign($key, $val); $this->templater->assign($key, $val);
} }
$message = $this->templater->fetch($this->template.'.tpl') . "\r\n\r\nС любовью @робот."; $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); return mail($mail, $subject, $message, $this->headers);
} }

Loading…
Cancel
Save