注册邮箱,发邮件的验证

来源:互联网 发布:中国最大的网络零售商 编辑:程序博客网 时间:2024/04/29 08:33

reg.php

$email_content = "Dear ".addslashes(@$_GET['first_name'])." ".addslashes(@$_GET['last_name'])."<br />";$email_content .= "<br />";$email_content .= "Thank you for register clockmail app,<br />";$email_content .= "Here is the information of your account:<br />";$email_content .= "Login email: ".addslashes(@$_GET['email'])."<br />";$email_content .= "Password: ".addslashes(@$_GET['password'])."<br />";$email_content .= "Click the following to activate the account.<br />";$email_content .= "<a href=\"".$WEB_ROOT."api/confirm.php?acc=".base64_encode(strtolower(@$_GET['email']))."\" target=\"_blank\">".$WEB_ROOT."api/confirm.php?acc=".base64_encode(strtolower(@$_GET['email']))."</a><br />";$email_content .= "The download link of the application:<br />";$email_content .= "http://demo.ecthk.net/app/iphone/clockmail<br />";$email_content .= "<br />";$email_content .= "clockmail_app<br />";

confirm.php

<?phprequire_once("../common/initialize.php");$acc = base64_decode($_GET['acc']);$user_query = RunQuery("select * from `user` where `login`='".$acc."'");if ($user = mysql_fetch_assoc($user_query)){mysql_free_result($user_query);RunQuery("update `user` set `active`=1 where `id`='".$user['id']."'");?><h3>身份確認</h3>感謝您註冊成為clockmail_app會員,你現在可以在clockmail_app登入!<br /><br /><!-- 若有任何問題詢問<br /><br />請電郵至 <a href="mailto:support@hongkonggay.info">support@hongkonggay.info</a><br /><br />與我們連絡,謝謝。<br /> --><?php  }else{echo '<h3>註冊失敗,請稍後重試!</h3>';}?>



原创粉丝点击