ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.com< กดยุบ (ห้องยกเลิกการใช้งาน)สาระคำถามทั่วไป (ย้ายไป cafe)ส่ง mail ด้วย php รบกวนผู้รู้ช่วยตอบหน่อยครับ
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ส่ง mail ด้วย php รบกวนผู้รู้ช่วยตอบหน่อยครับ  (อ่าน 399 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
bunjerd
คนรักเสียว
*

พลังน้ำใจ: 3
ออฟไลน์ ออฟไลน์

กระทู้: 159



ดูรายละเอียด เว็บไซต์
« เมื่อ: 31 มีนาคม 2009, 10:01:59 »

ผมเขียนโปรแกรมส่ง email code เดียวกันบาง host ส่งได้ แต่บาง host ส่งไม่ได้

             $to = "[email protected]";
   //define the subject of the email
   $subject = "Deep Marine Whey";
   //define the message to be sent. Each line should be separated with \n
   $message = "Name : ";
   //define the headers we want passed. Note that they are separated with \r\n
   $headers = "From: [email protected]";
   //send the email
   $mail_sent = @mail( $to, $subject, $message, $headers );

อยากรู้เป็นเพราะอะไร รบกวนผู้รู้ช่วยตอบด้วยครับ
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์