The script below works on my development web server which sits on our
company LAN. When I transfer the script to our isp hosted webserver, the
script does not work. I changed 192.168.10.9/iarnaweb/ to read localhost/
for the isp webserver version (I have also tried replacing localhost with
the actual ip address). On my development server, the email is sent and the
redirection happens but on the production server neither of these happens.
Any ideas?

<?PHP
  $toaddress = "[EMAIL PROTECTED]";
  $subject = "Enquiry via Web Site.";
  $mailcontent = "Customer Name: ".$name."\n"
                 ."Position: ".$position."\n"
                 ."Company Name: ".$company."\n"
                 ."Address: ".$address."\n"
                 ."E-mail: ".$email."\n"
                 ."Tel No: ".$telno."\n"
                 ."Customer Comments: ".$enquiry."\n";

  mail($toaddress, $subject, $mailcontent);

  header("Location: http://192.168.10.9/iarnaweb/contactack.html";);

?>


****************************************************
This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.
****************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to