PHP Send Mail
ตัวอย่าง function
function sendEmail($recipient,$subject,$message,$from,$replyto)
{
$array = array ("’" => "’");
$message = strtr($message, $array);
$message = ‘’.$message.’’." ";
$extra = ‘From: ‘.$from.’ <’.$replyto.’>’." ";
$extra .= ‘Content-Type: text/html; charset="tis-620"’." ";
$extra .= ‘Content-Transfer-Encoding: quoted-printable’." ";
mail ($recipient, $subject, $message, $extra);
}



// multiple recipients
$to = '[email protected]' . ', '; // note the comma
$to .= '[email protected]';

// subject
$subject = 'Birthday Reminders for August';

// message
$message = '
<html><br /><head><br /> <title>Birthday Reminders for August</title><br /></head><br /><body><br /> <p>Here are the birthdays upcoming in August!</p><br /> <table><br /> <tr><br /> <th>Person</th><th>Day</th><th>Month</th><th>Year</th><br /> </tr><br /> <tr><br /> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td><br /> </tr><br /> <tr><br /> <td>Sally</td><td>17th</td><td>August</td><td>1973</td><br /> </tr><br /> </table><br /></body><br /></html>
'
;

// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . " ";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . " ";

// Additional headers
$headers .= 'To: Mary , Kelly ' . " ";
$headers .= 'From: Birthday Reminder ' . " ";
$headers .= 'Cc: [email protected]' . " ";
$headers .= 'Bcc: [email protected]' . " ";

// Mail it
mail($to, $subject, $message, $headers);
PHP Send Mail

กระทู้ล่าสุดจากเว็บบอร์ด
หัวข้อกระทู้
ตอบ
เปิดดู
ล่าสุด
การใช้ ActionChains ใน Selenium สำหรับจำลองการกระทำบนหน้าเว็บ
โดย athirach.offcial จ 01 เม.ย. 2024 12:25 pm บอร์ด Software testing
0
119
จ 01 เม.ย. 2024 12:25 pm โดย athirach.offcial View Topic การใช้ ActionChains ใน Selenium สำหรับจำลองการกระทำบนหน้าเว็บ
การทำงานกับ Cookies ใน Selenium
โดย athirach.offcial จ 01 เม.ย. 2024 12:03 pm บอร์ด Software testing
0
86
จ 01 เม.ย. 2024 12:03 pm โดย athirach.offcial View Topic การทำงานกับ Cookies ใน Selenium
การเขียน Selenium ให้แจ้งเตือน Message Error
โดย athirach.offcial จ 01 เม.ย. 2024 11:59 am บอร์ด Software testing
0
80
จ 01 เม.ย. 2024 11:59 am โดย athirach.offcial View Topic การเขียน Selenium ให้แจ้งเตือน Message Error
เครื่องมือที่ช่วยในการทำ Automated test ใน python
โดย athirach.offcial จ 01 เม.ย. 2024 11:51 am บอร์ด Software testing
0
63
จ 01 เม.ย. 2024 11:51 am โดย athirach.offcial View Topic เครื่องมือที่ช่วยในการทำ Automated test ใน python
selenium เวอร์ชั่น ปัจจุบัน เป็นเวอร์ชั่นที่เท่าไหร่
โดย athirach.offcial จ 01 เม.ย. 2024 11:39 am บอร์ด Software testing
0
52
จ 01 เม.ย. 2024 11:39 am โดย athirach.offcial View Topic selenium เวอร์ชั่น ปัจจุบัน เป็นเวอร์ชั่นที่เท่าไหร่
ปัจจัยที่ทำให้เกิด Spam score ในเว็บไซต์
โดย athirach.offcial จ 01 เม.ย. 2024 11:27 am บอร์ด Share Knowledge
0
89
จ 01 เม.ย. 2024 11:27 am โดย athirach.offcial View Topic ปัจจัยที่ทำให้เกิด Spam score ในเว็บไซต์
Dell Optiplex 980 ไม่รองรับแรม Rank แบบ Single Rank
โดย mindphp จ 01 เม.ย. 2024 1:55 am บอร์ด ถาม - ตอบ คอมพิวเตอร์
0
326
จ 01 เม.ย. 2024 1:55 am โดย mindphp View Topic Dell Optiplex 980 ไม่รองรับแรม Rank แบบ Single Rank
การจัดประเภทของการ Test โปรแกรม
โดย athirach.offcial ส 30 มี.ค. 2024 12:54 pm บอร์ด Software testing
0
184
ส 30 มี.ค. 2024 12:54 pm โดย athirach.offcial View Topic การจัดประเภทของการ Test โปรแกรม