Hi there I wonder if some one could help me out.
I have 2 websites which I have almost finished building with fasthosts.co.uk
I have one of them mirex.co.uk on a Linux platform and the other (which I have the problem with) pnjc.co.uk on a windows platform. Unfortuantley this is the only way it can be.
The mail script I have pasted below works fine on the linux server but not on the windows server.?? Scripts are activated on both of the server and a php-test has shown that it is working fine on both.
I am really frustrated with this, I have tried a few variations with the script but web design is not my strong point.
Can anyone help me,
<?
if ($submit=="yes") {
$to = "admin@pnjc.co.uk";
$subject = "Personal Information From $lname";
$body .= "Here is my personal information,
Subject = $cmpname
Details = $fname
Name = $lname
Address 1 = $addr1
Address 2 = $addr2
My city = $city
State = $state
Postal/ZIP = $zip
Country = $country
Phone number = $phone
Email Address = $email
This service is provided by www.mirex.co.uk";
$from = "$lname";
$tfrom = "From: <$email>";
mail($to,$subject,$body,$tfrom);
}
// Provided by www.mirex.co.uk
?>
Thanks for your help guys.
Phil