ส่งเมลล์ แต่ขึ้น From:          www-data (sendmail@testcat.com) ไม่ใช่ webmaster@testcat.com ควรปรับตรงไหนครับ
ใน function บางส่วน

$mailform="webmaster@testcat.com";
$head = "MIME-Version: 1.0 \r\n";
  $head .= "Content-type: text/html; charset=tis-620 \r\n ";
  if ($mailform!=$mailto) $head .= "From: $mailform Reply-To: $mailform Return-Path: $mailform";

  return mail($mailto ,iconv( 'UTF-8' , 'TIS-620' , $subject ),iconv( 'UTF-8' , 'TIS-620' ,$msg),iconv( 'UTF-8' , 'TIS-620' ,$head));
กรกฎ วิริยะ 07 Jun 2009 13:43
$head .= "From: $mailform
Reply-To: $mailform
Return-Path: $mailform
";
gamegy 07 Jun 2009 19:42
ลองเปลี่ยนดูแล้วก็ไม่ได้ครับขึ้นเหมือนเดิม อาจาร์ย

(แต่เวลาส่งแบบที่ใม่ใช่ html ทุกอย่างปรกติ แต่เนือ้หาในเมลล์เป็นภาษาญี่ปุ่นซะงั้น )



กรกฎ วิริยะ 07 Jun 2009 21:12
ลองกลับไปดูที่บทความแล้วแก้อีกทีครับ ผมเอาโค้ดนี้มาจาก GCMS
gamegy 07 Jun 2009 22:43
แก้ head เป็นแบบนี้แล้ว ผลคือ ส่งเมลออกไม่ได้เลยครับ

$head = "MIME-Version: 1.0\n";
  $head .= "Content-type: text/html; charset=TIS-620\n";
  $head .= "From: $mailform\n";
  $head .= "Reply-to: $mailform\n";
  $head .= "X-Priority: 3\n";
  $head .= "X-Mailer: PHP mailer\n";
กรกฎ วิริยะ 08 Jun 2009 08:18
555+++

ลองติดตั้ง GCMS ดูทีครับ แล้วทดสอบการส่งเมล์จาก GCMS ดู ผมเอาโค้ดในบทความมาจาก GCMS ครับ
gamegy 08 Jun 2009 12:07
ขอบคุณครับ