ช่วยหน่อยครับ ส่งเมล์แล้วเข้าถังขยะ เขียนแบบนี้มีวิธีแก้มั้ยครับ หรือผมต้องแก้เป็นใช้ phpmailer
<?php
error_reporting( error_reporting() & ~E_NOTICE );
$strTo = "xxxxxxxxxx";
$strSubject = $_POST["txtSubject"];
$strHeader .= "MIME-Version: 1.0' .
";
$strHeader .= "Content-type: text/html; charset=utf-8
";
$strHeader .= "From: ".$_POST["txtFormName"]."<".$_POST["txtFormEmail"].">
Reply-To: ".$_POST["txtFormEmail"]."";
$strMessage = nl2br($_POST["txtDescription"]);
$flgSend = @mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error //
if(empty($_POST["txtSubject"]) && empty($_POST["txtFormName"]) && empty($_POST["txtFormEmail"]) && empty($_POST["txtDescription"]))
{
echo "";
}
else
{
if(!$flgSend)
{
echo "";
}
else
{
echo "<script> alert(' SEND E-mail '); window.location = 'contact.php'; </script>"; //?Huh?Huh?Huh? mailFrom.html
}
}
?>