|
 |
|
ขอถามเรื่อง ลืม รหัสผ่านหน่อยนะครับ ภาษา ครับ .. กรอหอีเมล์แล้วส่งรหัสผ่านไป พอส่งไปแล้ว เปิดดูในฮอตเมล์มันเป็น จีน |
|
 |
|
|
 |
 |
|
ถ้าหมายถึง php mail script ก็ตรง Header Charset ครับ ลองหาดูในเว็บ ก็น่าจะมี
|
 |
 |
 |
 |
Date :
2011-05-27 15:43:21 |
By :
mangkunzo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อันนี้ สคริปที่ส่งเมล์ ครับ พอส่งไปแล้วเปิดดูที่ฮอตเมล์มันเป็น ภาษาจีน อ่ะครับ
Code (PHP)
<meta http-equiv="content-type" content="text/html;charset=tis-620">
<?php
if(isset($forget) and $forget=="forget") {
include("config.inc.php") ;
mysql_select_db($db) ;
$result = mysql_query("select email_member from tbl_member where email_member='$email_member' ") or die("Err Database") ;
$numrow = mysql_num_rows($result) ;
if($numrow==0) {
$status = "<center><font size='3' face='MS Sans Serif'><b>ไม่มี $email_member อยู่ในฐานข้อมูลครับ</b></font></center>" ;
}
else {
$result = mysql_query("select * from tbl_member where email_member='$email_member' ") ;
$dbarr = mysql_fetch_array($result) ;
$email_member = $dbarr['email_member'] ;
if($result) {
$from = "From:\"$admin_email\"<$admin_email>" ;
$subject = "นี่คือรหัสผ่านในการเข้าสู่ระบบของคุณนะครับ" ;
$message = "สวัสดีครับ คุณ $dbarr[name]
password ในการเข้าสุ่ระบบของคุณคือ $dbarr[password]
ขอขอบคุณมากครับ ที่เป็นส่วนหนึ่งของทีมงาน $home " ;
if(mail($email_member,$subject,$message,$from)) {
$status = "<center><font size='3' face='MS Sans Serif'><b>ขณะนี้ระบบของเราได้ส่งรหัสผ่านของคุณไปทางอีเมล์ $email_member เรียบร้อยแล้วครับ</b></font></center>" ;
}
else {
$status = "<center><font size='3' face='MS Sans Serif'><b>ระบบไม่สามารถส่งอีเมล์ไปให้ท่านได้</b></font></center>" ;
}
}
}
}
else {
$status = "" ;
}
?>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=tis-620">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<p> </p>
<p> </p>
<p><?php echo $status; ?></p>
<form action="" method="post">
<table width="280" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td colspan="2"> <div align="center"><strong>กรุณากรอก
email ในการเข้าสู่ระบบด้วยครับ</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">email</td>
<td bgcolor="#FFFFFF"><input name="email_member" type="text" id="email_member" size="50"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><div align="center">
<input type="submit" name="Submit" value="ส่งรหัสผ่าน">
<input name="forget" type="hidden" id="forget" value="forget">
</div></td>
</tr>
</table>
</form>
<p>ระบบจะส่งรหัสผ่านไปทางอีเมล์ของคุณ</p>
</div>
</body>
<?php include"menu_index.php";?>
|
 |
 |
 |
 |
Date :
2011-05-27 16:39:11 |
By :
chachrist |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|