PHP mail() function not working on GoDaddy website?

Hexel C

New member
I've been struggling with this for a long while now.

To troubleshoot the problem I did a little experiment. I created a simple PHP script that it's only function was the mail() function.

First I uploaded and ran it on a network solutions website I have. It worked and I received the email in 3 minutes.
Then I uploaded and ran the same script on my GoDaddy website, the one I've been having trouble with. I still haven't received my email.

I called GoDaddy's support but they said that their support doesn't cover this. Does anyone know how I can get it to work? Is there an alternative script or function I can try? Some work around?

Here's the script I used:

<?php
$to = '[email protected]';
$subject = 'This is the asdf test!';
$message = 'This is yet another test using the fifth parameter as recommended';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To:[email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers, "[email protected]");
?>
 
Back
Top