$to = "zzz@xxxx.com";$msg = "{$datamail}"; // HTML message$subject = " ทดสอบการส่ง Email ";$subject = "=?UTF-8?B?" . base64_encode("{$subject}") . "?=";ini_set('SMTP', 'mail.xxxx.com');ini_set('smtp_port', '25');ini_set('sendmail_from', 'zzzz@xxxx.com'); $headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'From: AAAA <zzzz@xxxx.com>' . "\r\n";$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";$headers .= "X-Priority: 1 (Highest)\n";$headers .= "X-MSMail-Priority: High\n";$headers .= "Importance: High\n";