PHP ส่ง mail ต้องการตั้งเมล์ผู้ส่ง

เริ่มโดย เก๋าลัดคุง, 17 ตุลาคม 2011, 23:01:11

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

เก๋าลัดคุง

PHP ส่ง mail ต้องการตั้งเมล์ผู้ส่ง

อยากให้ โดยใช้ชื่อ [email protected]

แต่ลองส่งบนจริงเป็น เข้า Box เมล์เป็น จาก:   [email protected]

จะต้องแก้อะไรที่โฮทหรือเปล่าครับ หรือเขียนโค้ดแบบใด

ขอบคุณครับ

$to = "[email protected]";
$subject = "=?utf-8?B?".base64_encode($subject)."?=";
$header = "Content-type: text/html; charset=utf-8\r\n From: [email protected]\r\n"; // Content-type: text/plain;
$message = "<b>xxxx</b>";
$send = @mail($to,$subject,$message,$header);
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

JcSeo

ผมแนะนำ โค้ดอันนี้ดีกว่าครับ ส่งเป็น html ได้ ใส่ตัวหนา สี ตาราง อะไรที่เป็น html ได้คับ  เวอวายเว็บ.thaicreate.com/php/php-send-email-html-format.html แต่ตัวนี้เวลาส่ง จะอยู่ อีเมลขยะ หรือจั๊งเมล นะคับ(ผมทดสอบกับ hotmail)

เก๋าลัดคุง

อ้างถึงจาก: JcSeo ใน 17 ตุลาคม 2011, 23:24:12
ผมแนะนำ โค้ดอันนี้ดีกว่าครับ ส่งเป็น html ได้ ใส่ตัวหนา สี ตาราง อะไรที่เป็น html ได้คับ  เวอวายเว็บ.thaicreate.com/php/php-send-email-html-format.html แต่ตัวนี้เวลาส่ง จะอยู่ อีเมลขยะ หรือจั๊งเมล นะคับ(ผมทดสอบกับ hotmail)

โอ้ ขอบคุณมากครับ เขียนตามเว็บนั้น OK เลย

+1 Thank ครับ
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]