利用变量记录信息
$From="From: $dbemail";
$To="$dbemail";
$Subject="Your user record password:\n";
$Content="$user: your password is $dbpw for zjliu intranet.\n";
利用mail发送邮件
$sendpw=mail($To,$Subject,$Content,$From);
判断是否发送成功
if($sendpw)
{
echo "Your password has been sent out to $dbemail<br>";
}
else
{
echo "Your password can not be sent out to $dbemail, please check your intput!<br>";
}
$From="From: $dbemail";
$To="$dbemail";
$Subject="Your user record password:\n";
$Content="$user: your password is $dbpw for zjliu intranet.\n";
利用mail发送邮件
$sendpw=mail($To,$Subject,$Content,$From);
判断是否发送成功
if($sendpw)
{
echo "Your password has been sent out to $dbemail<br>";
}
else
{
echo "Your password can not be sent out to $dbemail, please check your intput!<br>";
}