I use a generic script for contact forms, which works OK on both UK2
and 1&1
. However, I've tried this on GoDaddy and it doesn't send emails:
$name = $_POST['name'];
$content = "From:\n" . $name . "\n\n";
$content .= "Email address:\n" . $_POST['email'] . "\n\n";
$content .= "Message:\n" . wordwrap($_POST['message'], 70);
//send email
if (strcmp($content, "") === 0) {
echo "err";
die();
}
mail("myemail@email.com", "Website Enquiry", $content);
An answer on GoDaddy's support website was this:
"What I was told was that GoDaddy has two different mail servers, Workspace and the cPanel server. GoDaddy has to turn on their MX entries (don't ask me what that is) so that the mail will be sent through the cPanel server."
However, GoDaddy support have told me this is setup correctly on my server.
Are there any headers that need passing in on GoDaddy?
Thanks in advance.