When i publish it in live site, window server, the server was support php, so i think is ok to bring over the php mail form,
but i face a problem to sent email.
It seem like the form only able to sent email to .com mail address,
if i set the form sent to .net or country email address, i wont receive,
if i set the form sent to domain.com or yahoo.com, i received,
abc@domain.com (received)
abc@domain.net (not received)
abc@domain.com.sg (not received)
Below are the code i using.
Is it the asp form is my only choice? or can i just do some change in my php form to run in window server?
<?
$fullname = $_POST['fullname'];
$msg = $_POST['msg'];
?>
<?php
if ($_SERVER['REQUEST_METHOD']=="POST"){
$to="abc@domain.net";
$cc="abc@domain.com";
$subject = "Online Order";
$headers =
"From: $fullname\r\n" .
"cc: $cc\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: multipart/mixed;\r\n" .
" boundary=\"{$mime_boundary}\"";
$message="
<table cellpadding='0' cellspacing='0' border='0'>
<tr><td><b>$fullname,</b></td></tr>
<tr><td>$msg</td></tr>
</table>
";
if (@mail($to, $subject, $message, $headers))
} else {
<form> </form>
<?php } ?>

New Topic/Question
Reply




MultiQuote



|