⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 safe-email.php

📁 邮箱加即时聊天
💻 PHP
字号:
<? ob_start();?>
<html>
<head><br><br><br>
	<title>短信息接收系统安全中心</title>
</head>
<body background="danse3.jpg">
  <iframe src="title1.php" width=100% height=14% scrolling=no noresize frameborder=0 style="position:absolute;top:0;"></iframe>
	<div style="position:absolute;background-image:url('title1.jpg');width:100%;height:70;top:0;left:0"></div>
	<div style="position:absolute;top:90px;left:92%"><font size=2><a href="index.html">首页</a>|<A href="faq.html">帮助</A></font></div>	
    <br>
    <br><br>	
  <center>
	<table width=750 cellpadding=0 cellspacing=0 frame=box border=10 bordercolor=lightblue>
	<tr><td width=1></td>
	<td width=8></td>
	<td width=732 align=center>

	<!--提示信息 begin-->
	<table width="100%" border=0 cellpadding=0 cellspacing=2>
	<tr><td height=1 colspan=3></td></tr>
	<tr><td colspan="3" height=10 ></td></tr>
	<tr><td width=120 align=right></td>
	<td width="18"><img src="data01.gif" width="13" height="13"></td>
	<td width="604" class=lr><strong>输入会员名和保密邮箱<strong></td></tr>

	<tr height=10><td><td colspan="2"></td></tr>
	</table>
	<!--提示信息 end-->

		<table width="100%" border=0 cellspacing=0 cellpadding=0 height=10>
	<tr><td></td></tr>
	</table>


	<table width="100%" border=0 cellspacing=0 cellpadding=0 height=10>
	<tr><td></td></tr>
	</table>

	<!--内容 begin-->
	<table width=540 border=0 cellpadding=0 cellspacing=1 bgcolor=#999999>
	<tr><td bgcolor=#F7F7F7>
	<form name="Submit" method="post" action=safe-email.php>
	<br><br>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr><td align=right ><font color=red>*</font>请输入会员帐户名:</td>
		<td align=left width="310">
		<input type="text" name="loginname" size="22" >
		<div id=loginname style="DISPLAY:none"></div></td></tr>
	</table>

	<br><br>
	
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr><td align=right ><font color=red>*</font>请输入保密邮箱:</td>
		<td align=left width="310">
		<input type="text" name="email" size="22" >
		<div id=loginname style="DISPLAY:none"></div></td></tr>
	</table><br>

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr><td></td><td></td></tr>
		<tr><td width="100%" colspan=2 align=center>
		<input type=submit name=submitEmail value="提  交"></td></tr>
	</table><br><br>
	</td>
	</tr>
	</table>
	</form>
	<!--内容 end-->
<?
	include "Sysconf.php";
	include "class.phpmailer.php";
	$submitEmail=$_POST["submitEmail"];
	$username=$_POST["loginname"];
	$email=$_POST["email"];
	
	
	if($submitEmail=="提  交")
	{
	if($username==""){
			echo "<script>alert('请输入用户名!')</script>";
			echo "<script>javascript:history.back()</script>";   
		}elseif($email==""){
			echo "<script>alert('请输入安全邮箱!')</script>";
			echo "<script>javascript:history.back()</script>";   
			}
		else{
			
			$sql="select b.* 
				   from user_extend_information a,user_base_information b
				   where a.user_id = b.user_id and b.user_name='$username' and a.email='$email';";
				   
			$result=mysql_query($sql);
			
			if(mysql_fetch_row($result) == true){
				
				$password=mysql_result($result,0,'password');
								
											
								
				$mail = new PHPMailer();     //得到一个PHPMailer实例
				
				$mail->CharSet = "gb2312"; //设置采用gb2312中文编码
				$mail->IsSMTP();                    //设置采用SMTP方式发送邮件
				$mail->Host = "smtp.163.com";    //设置邮件服务器的地址
				$mail->Port = 25;                           //设置邮件服务器的端口,默认为25
				
				$mail->From     = "xie497447109@163.com"; //设置发件人的邮箱地址
				$mail->FromName = "xie497447109";                       //设置发件人的姓名
				$mail->SMTPAuth = true;                                    //设置SMTP是否需要密码验证,true表示需要
				
				$mail->Username="xie497447109";
				
				$mail->Password = "5038032008";
				$mail->Subject = "密码找回,请不要回复我们!!";                                 //设置邮件的标题
				
				//$mail->AltBody = "text/html";                                // optional, comment out and test
				
				
				$mail->Body = "你的邮件的内容,密码是".$password;                   
				
				$mail->IsHTML(true);                                        //设置内容是否为html类型
				//$mail->WordWrap = 50;                                 //设置每行的字符数
				$mail->AddReplyTo("jiahuixing77@sina.com","jiahuixing77");     //设置回复的收件人的地址
				
				$fenge[]=explode("@",$email);
				
				$email_name=$fenge[0];
				
				
				
				$mail->AddAddress($email,$email_name);     //设置收件的地址
				if(!$mail->Send()) {                    //发送邮件
					echo "<script>alert('发送失败;')</script>";
				} else {
					echo "<script>alert('邮件发送成功,请及时查收!')</script>";
					header("refresh:0 url='index.html'");

				}
				
			}else{
				echo "<script>alert('邮箱或帐户错误 ,请重新输入!')</script>";	
				
			}
		}
	
	}
?>
	<div id =end style="layer-background-color:red"><center>
	<font size=2>
	<hr width=750>
	<a href="about.html">制作小组</a> - <a href="help.html">帮助</a> - <a href="contactus.html">联系方法</a> - 
	<a href="http://corp.163.com/gb/job/job.html">招聘信息</a> - <a href="report.html">报告错误</a> - 
	<a href="http://gb.corp.163.com/gb/legal.html">相关法律</a><br/>

	短消息接收系统第二制作小组 &copy;2008-2009
	</font></center>
    </div> 
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -