Browse Source

email changes

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

2
classes/Mailer.class.php

@ -57,7 +57,7 @@ class Mailer
$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');
$encoded_subject = '=?UTF-8?B?' . base64_encode($subject) . "?=\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);
} }

7
classes/User.class.php

@ -132,8 +132,11 @@ class User
$link = 'http://' . $settings['host_name'] . '/activate/?key=' . $model->generateKey($login, $mail); $link = 'http://' . $settings['host_name'] . '/activate/?key=' . $model->generateKey($login, $mail);
$mailer = new Mailer('UserRegister'); $mailer = new Mailer('UserRegister');
return $mailer->send($mail, 'Подтверждени E-mail ' . $settings['host_name'], array('link' => $link, 'site_name' => $settings['site_url']));
return $mailer->send($mail, 'Подтверждени E-mail ' . $settings['host_name'], array(
'link' => $link,
'site_name' => $settings['site_url'],
'email' => $mail,
));
} }
} }
?> ?>
Loading…
Cancel
Save