Exemplo n.º 1
0
            $GETSQL->fUpdate("`{$ODBC['tablepre']}members`", "`password`='{$newpwd}'", "`uid`='{$sql_login['uid']}'");
        }
        include_once Getincludefun("mail");
        //邮件发送
        $mail = new mail();
        $mail->setTo("*****@*****.**");
        //收件人
        //$mail->setCC("b@b.com,c@c.com"); //抄送
        //$mail->setCC("d@b.com,e@c.com"); //秘密抄送
        $mail->setFrom("*****@*****.**");
        //发件人
        $mail->setSubject("主题");
        //主题
        $mail->setText("文本格式");
        //发送文本格式也可以是变量
        $mail->setHTML("html格式");
        //发送html格式也可以是变量
        //$mail->setAttachments("c:a.jpg") ;//添加附件,需表明路径
        $mail->send();
        //发送邮件
        $mess = gb2utf8("请查收您的邮箱");
        die($mess);
    }
    include_once Getincludefun("html");
    $smarty->assign('config', array('title' => $config['title'] . "找回密码", 'keywords' => $config['keywords'] . "找回密码", 'description' => $config['description'] . "找回密码"));
    $smarty->assign('regname', $_COOKIE['regname']);
    $smarty->assign('rentime', fmicrotime());
    $smarty->display("head.htm");
    $smarty->display("mail.htm");
    $smarty->display('foot.htm');
}