I have a simple template for my website and two versions. One is .co (GoDaddy) and the other is .co.nz(Another Company). I'm using a basic PHP form that sends email successful to Google Gmail, however when I try changing the destination email address to non-gmail, it fails, strangely the other hosting account accepts both destinations.

Here is my PHP form:

$mail = @mail(WEBMASTER_EMAIL, "Contact Form -BUSINESS-.", $message,
     "From: ".$name." <".$email.">\r\n"
    ."Reply-To: ".$email."\r\n"
    ."X-Mailer: PHP/" . phpversion());
  • What are you specifying as the "From:" email address?
    – MrWhite
    Commented Jun 3, 2016 at 10:38
  • Any errors thrown?
    – Steve
    Commented Jun 3, 2016 at 21:53

2 Answers 2


I had the same problem. I called Godaddy support and it sucks, so you need to access MX Entry in cPanel and configure it to remote MX if your email server is outside godaddy. Remember that you have to send emails from PHP trought your own domain. You need to specify a mx record in order to send the emails, it works for me with a delay of 10 minutes.


If you use, Godaddy email or hosting provider email, you can configure your SMTP details in your PHP to avoid non delivery.

  • What does the SMTP need to be configured as? Commented Oct 5, 2016 at 11:27
  • i dont know much about php, but if you are using any php frameworks, there should be an option to config smtp.. but to get you an idea, im using phpmailer to send email for my own domain like "[email protected]".. for this i needed to config smtp details in my phpmailer function.. i think these two links can help you, if you are using phpmailer.. link link hope it helps.. Commented Oct 5, 2016 at 11:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.