I have a custom form inserted into a page. The form calls a UDT for the php code to send an email autoresponder and submit the form values to a DB table.
This form works exactly as expected on my test site, but fails on the live site, which is hosted with GoD (the test site is NOT hosted with GoD).
Below is an excerpt of the UDT php code to send the email:
Code: Select all
$to = 'info@mydomain.com';
$sub = 'Free Consultation Contact Form';
$headers = "From: mydomain.com<info@mydomain.com>\n";
$headers .= "X-Sender: mydomain.com <info@mydomain.com>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <info@mydomain.com>\n"; // Return path for errors
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
Many thanks for any help!!!
CMSMS v 1.5.2
Linux Server
PHP v 5.2.8
MySQL v 5.0.6