/home/nondinda/domains/nondindaengcity.go.th/public_html/phpSendMailContactForm.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<title>ThaiCreate.Com PHP Sending Email</title>
</head>
<body>
<?
    $strTo 
$_POST["txtTo"];
    
$strSubject $_POST["txtSubject"];
    
$strHeader "Content-type: text/html; charset=windows-874\r\n"// or UTF-8 //
    
$strHeader .= "From: ".$_POST["txtFormName"]."<".$_POST["txtFormEmail"].">\r\nReply-To: ".$_POST["txtFormEmail"]."";
    
$strMessage nl2br($_POST["txtDescription"]);
    
$flgSend = @mail($strTo,$strSubject,$strMessage,$strHeader);  // @ = No Show Error //
    
if($flgSend)
    {
        echo 
"Email Sending.";
    }
    else
    {
        echo 
"Email Can Not Send.";
    }
?>
</body>
</html>