|
 |
|
รบกวนเรื่องแบบฟอร์มส่งเมลค่ะ คือว่าสร้างพอร์มส่งอีเมล์ขึ้นมา ใน Dream ค่ะ(php)แต่พอส่งส่งได้ค่ะไม่มีปัญหา |
|
 |
|
|
 |
 |
|
ที่เครื่องไม่มี IIS SMTP Virtual Server อ่ะค่ะ ตั้งค่าไม่ได้ ทำไงดีค่ะ ต้องหาโหลด IIS SMTP มาติดตั้งหรือป่าวค่ะ งืมๆ ช่วยหน่อยนะค่ะ ไม่เคยเขียน เลย
|
 |
 |
 |
 |
Date :
2010-12-08 15:50:29 |
By :
kikunwa |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้วิธีภาษาต่างด้าวนะครับ
จะมีอยู่สองแบบที่ใช้กันใหญ่ๆเลย
แบบที่หนึ่ง ตั้งค่าเป็น utf8 (encoding utf-8 )ไว้
Code (PHP)
$email ="เมล์ที่จะส่ง ";
$subject ="หัวเรื่อง";
$msg="ข้อความ ";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: เมล์เรา \n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .="X-Mailer: PHP/" . phpversion();
if (mail($email,$subject,$msg,$headers)) { .... }
แบบที่สอง ตั้งค่าเป็น windows874 หรือ tis620 ( encoding asi )
Code (PHP)
$email ="เมล์ที่จะส่ง ";
$subject ="หัวเรื่อง";
$msg="ข้อความ ";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: เมล์เรา \n";
$headers .= "Content-type: text/html; charset=tis-620\r\n";
$headers .="X-Mailer: PHP/" . phpversion();
if (mail($email,$subject,$msg,$headers)) { .... }
ดูที่content-typ text/html ก็ได้ครับเปลี่ยนแค่ charset แค่นั้นเอง
|
 |
 |
 |
 |
Date :
2010-12-08 16:08:35 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|