get('mail'); self::$_instance[$key] = new Mail($options['mailer'], $options['delimiter'], $options['charset'], $options['from'], $options['sign'], $options['smtp_host'], $options['smtp_port'], $options['smtp_auth'], $options['smtp_username'], $options['smtp_password']); } self::$_instance[$key]->execute($email, $title, $html); if ($this->error = self::$_instance[$key]->error()) { return false; } return true; } public function getError() { return $this->error; } /** * 邮箱验证码 * @param $nickname * @param $code * @return string */ public function emailCode($nickname, $code) { return "
亲爱的{$nickname}:
您的验证码为:{$code}
您的账号正在进行找回密码操作!
{$copyright}
|