|
@@ -39,6 +39,7 @@ class Email
|
|
|
public function renzheng()
|
|
|
{
|
|
|
$email = Dever::input('email');
|
|
|
+ $username = Dever::input('username');
|
|
|
$code = Dever::input('code');
|
|
|
$mid = Dever::input('mid');
|
|
|
$email = base64_decode($email);
|
|
@@ -50,10 +51,10 @@ class Email
|
|
|
|
|
|
$link = Dever::url($config['link'] . '?signature=' . $signature);
|
|
|
$content = str_replace('{link}', $link, $content);
|
|
|
- $this->send($email, $title, $content);
|
|
|
+ $this->send($email, $username, $title, $content);
|
|
|
}
|
|
|
|
|
|
- public function send($email, $title, $content)
|
|
|
+ public function send($email, $username, $title, $content)
|
|
|
{
|
|
|
$config = Dever::config('base', 'project')->email;
|
|
|
|
|
@@ -72,7 +73,7 @@ class Email
|
|
|
$mail->Username = $config['username'];
|
|
|
$mail->Password = $config['password'];
|
|
|
$mail->setFrom($config['from'][0], $config['from'][1]);
|
|
|
- $mail->addAddress($user['email'], $user['username']);
|
|
|
+ $mail->addAddress($email, $username);
|
|
|
$mail->Subject = "=?utf-8?B?" . base64_encode($title) . "?=";
|
|
|
$mail->Body = $content;
|
|
|
|