| <?
 # version 2 in html format : http://www.yonok.ac.th/burin/mailhtml.php
 # version 1 in text : http://www.isinthai.com/isinthai/sndform.php
 $mto = 'suwan@strongfiber.com,burin@yonok.ac.th';
 $mfrom = $_POST{"mfrom"} . $_GET{"mfrom"};
 $msubj = $_POST{"msubj"} . $_GET{"msubj"};
 $message = $_POST{"14message"} . $_GET{"14message"};
 $redirect = $_POST{"redirect"} . $_GET{"redirect"};
 $01custname = $_POST{"01custname"} . $_GET{"01custname"};
 $02title = $_POST{"02title"} . $_GET{"02title"};
 $03company = $_POST{"03company"} . $_GET{"03company"};
 $03typebusiness = $_POST{"03typebusiness"} . $_GET{"03typebusiness"};
 $04addr1 = $_POST{"04addr1"} . $_GET{"04addr1"};
 $05addr2 = $_POST{"05addr2"} . $_GET{"05addr2"};
 $06city = $_POST{"06city"} . $_GET{"06city"};
 $07state = $_POST{"07state"} . $_GET{"07state"};
 $08zip = $_POST{"08zip"} . $_GET{"08zip"};
 $09country = $_POST{"09country"} . $_GET{"09country"};
 $10tel = $_POST{"10tel"} . $_GET{"10tel"};
 $11fax = $_POST{"11fax"} . $_GET{"11fax"};
 $12email = $_POST{"12email"} . $_GET{"12email"};
 $13www = $_POST{"13www"} . $_GET{"13www"};
 
 if (empty($redirect)) { $redirect = "http://www.strongfiber.com"; }
 if (empty($message)) { $message = "<html><body bgcolor=red>
 <a href=http://www.thaiall.com>thaiall.com</a><hr color=white>hello
 </body></html>"; }
 if (empty($mto) || empty($msubj) || empty($mfrom)) {
 echo "<font face=fixedsys>";
 echo "<form action=mail.php method=post>";
 echo ".. From : <input name=mfrom value='$mfrom' size=30><br>";
 echo "Subject : <input name=msubj value='$msubj จาก  strongfiber.com' size=50><br>";
 echo "Messages:<br><textarea name=14message rows=10 cols=80>$message";
 echo "</textarea> <input type=submit value='Send mail'>";
 echo "<br><input name=redirect type=hidden value=$redirect>";
 echo "</form>";
 } else {
 $msubj = "Subject _ ".$msubj;
 // mail("$mto","$msubj",$message,"From: $mfrom\nX-Mailer: PHP/" . phpversion();
 mail("$mto","$msubj จาก strongfiber.com",$message . $01custname .
 $02title . $03company . $03typebusiness . $04addr1 . $05addr2 . $06city . $07state . $08zip . $09country .
 $10tel . $11fax . $12email . $13www,"From: $mfrom\r\n"
 ."Reply-To: $mfrom\r\n"
 ."MIME-Version: 1.0\r\n"
 ."Content-Type: text/html;\r\n"
 ."Content-Transfer-Encoding: 7bit\r\n"
 ."X-Priority: 1\r\n"
 ."X-Mailer: PHP/" . phpversion());
 echo "<html><head><meta http-equiv=Refresh CONTENT='30; URL=$redirect'>";
 echo "</head><body><font face=fixedsys><pre>";
 echo "From    : $mfrom \n";
 echo "To      : $mto \n";
 echo "Subject : $msubj \n";
 echo "Message :<ul><font color=gray>" . htmlentities($message);
 echo "</ul></font><hr color=red>Your message sending : <b>Completely</b>\n";
 echo "Script developer : webmaster@thaiall.com\n";
 }
 ?>
 
 
 
 |