PHP mail function on Godaddy

  • devilwood
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 447

Post 3+ Months Ago

Below is the way I'm using the mail() function to send an email to an account member. I've been having issues with Godaddy sending the email or rather the email arriving. One email took 29 minutes. I tested one and it arrived in my gmail pre-timed at 29 minutes, so right when the message arrived (cause I was in my email at the time it arrived) gmail already said it was 29 minutes ago. I have others that tested it and some just aren't getting the emails at all. Is there something else I need to add/change about the way I'm using the mail() function to ensure quicker and proper delivery? Also, what are some suggestions to better handle this? I've used the mail() function in tons of applications and never really had a problem. I mean sometimes with other hosts the email might take a minute or two but never 29 and never not-at-all. I've googled 'PHP mail() not working on Godaddy' and there's quite a lot on this issue but most of the problem was the individual was on windows hosting. I also found that Godaddy allows 1000 emails a day which I'm nowhere remotely close to that. I looked at using PHPMailer or some other mail class and use SMTP so I could use the Godaddy email accounts I have setup but they only allow 50 SMTP relays a day. Also, I don't have SSL so I don't know if I can use like a Yahoo or Gmail SMTP. I'm on shared linux hosting.

Code: [ Select ]
$u = "";
$from = "from: Mywebsite<>\n";
$from .= "Return-Path: Mywebsite<>\n";
$from .= "MIME-Version: 1.0\n" ; 
$from .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$from .= "X-Mailer: PHP/" . phpversion() . "\n";  
$from .= "X-Priority: 1";
$emailit = "Thank you for registering. \n.";
$emailit .= "Your registration information: \n LoginName: $u \n";
$emailit .= "Please activate your account. \n";
$emailit .= "Pass: $pass \n";
$subject= "Thank You for Registering";
  1. $u = "";
  2. $from = "from: Mywebsite<>\n";
  3. $from .= "Return-Path: Mywebsite<>\n";
  4. $from .= "MIME-Version: 1.0\n" ; 
  5. $from .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
  6. $from .= "X-Mailer: PHP/" . phpversion() . "\n";  
  7. $from .= "X-Priority: 1";
  8. $emailit = "Thank you for registering. \n.";
  9. $emailit .= "Your registration information: \n LoginName: $u \n";
  10. $emailit .= "Please activate your account. \n";
  11. $emailit .= "Pass: $pass \n";
  12. $subject= "Thank You for Registering";
  13. mail("$u","$subject","$emailit","$from");

  • giuliastro
  • Born
  • Born
  • giuliastro
  • Posts: 1

Post 3+ Months Ago

I am having the same problem as you, in your same configuration. As I see GoDaddy has TONS of (email) problems. Did you manage to get around this?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 28 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.