Custom Form & GoDaddy Issue

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
repadv
New Member
New Member
Posts: 3
Joined: Fri Mar 13, 2009 5:11 pm

Custom Form & GoDaddy Issue

Post by repadv »

Hi Guys,

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
Has anybody else run into this issue or know how to get a simple html form to send on a GoD server?

Many thanks for any help!!!

CMSMS v 1.5.2
Linux Server
PHP v 5.2.8
MySQL v 5.0.6
Last edited by repadv on Fri Mar 13, 2009 6:22 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”