• บทความ ในนี้จะไม่มีการ update แล้วนะครับ บทความทั้งหมดจะไป update ที่ Modoeye Articles
  • ระบบยังไม่สมบูรณ์ ระบบสมาชิกยังใช้ไม่ได้นะครับ ติดปัญหาไม่สามารถ post ได้ แจ้งปัญหาได้ทาง E-mail เลยครับ
เทพกิ๊กก๊อก
เทพกิ๊กก๊อก
Mon 31 Aug 2009 16:11:36

รบกวนช่วยดูโค๊ดให้หน่อยครับว่าทำไมมันส่งไม่เข้าเมล์ครับ

<?
include_once("connect.php");
?>
<?
if($_POST['submit']=="Submit"){
$subject="BizHouse Property";
$header="From: $mail \n";
$header.="Reply-To: $mail \n";
$headers  = "MIME-Version: 1.0n";
$headers.= "Content-Type: text/html; charset=tis-620n";
$messages="$detail or Contact Here : $mail";
?>
<?
$sql="select * from mail";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result));
$to = $row["mail_desc"];
mail($to,$subject,$messages ,$header,'-f sender'); }
?>

webmaster
webmaster
Tue 1 Sep 2009 02:14:57
$to = $row["mail_desc"];

column mail_desc เก็บอะไรไว้ครับ

$header="From: $mail \n";
$header.="Reply-To: $mail \n";
$headers  = "MIME-Version: 1.0n";
$headers.= "Content-Type: text/html; charset=tis-620n";

เลือกเอาวักตัวครับว่าจะใช้ $header หรือ $headers

option -f ไม่ต้องใส่หรอกครับ
suay
suay
Thu 10 Sep 2009 10:12:13
แก้เป็น
$header="From: $mail \n";
$header.="Reply-To: $mail \n";
$headers  .= "MIME-Version: 1.0n";
$headers.= "Content-Type: text/html; charset=tis-620n";

น่าจะได้นะ
marut.com
marut.com
Wed 21 Oct 2009 13:44:56

headers.= "Content-Type: text/html; charset=tis-620n";

Reply: รบกวนช่วยดูโค๊ดให้หน่อยครับ
Name:
E-mail:
Verify: Verify code