+ Reply to Thread
Page 1 of 7 1 2 3 ... LastLast
Results 1 to 10 of 70

Thread: Email is down again!

  1. #1

    Default php mail() function not working

    I am trying to debug a problem with the php function mail() on one of my sites at bluehost. I have a very basic php file that contains a call to mail() with the most basic arguments. This same exact code works on other sites. There are no errors when the script runs, no errors in the log files and the mail function returns success (1) but no mail is ever sent. I am looking for any suggestions of things to check or ideas of why this isn't working.

    Code:
    mail('me@domain.com', 'Test', 'Hello, this is a test.', 'From: info@domain.com');
    note: Email addresses have been altered.

    Thanks,
    Joe

    www.ePartyGuide.com - Nightlife reviews
    www.collegekegerators.com - Ice cold beer on tap
    Last edited by himed; 12-13-2007 at 08:02 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    202

    Default

    Have you checked your spam box? Try a different email account or something.
    ultimateuploader.com - Free file uploading and hosting
    ultimatevideotutorials.com - Free Photoshop video tutorials
    silentcollision.com

  3. #3

    Default

    Yea, I haven't gotten any spam and I have tried a few different addresses.

  4. #4
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,533

    Default

    Do both the from and to addresses actually exist?

  5. #5

    Default

    Yea, they are both valid email addresses.

  6. #6
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,349

    Default

    PHP Code:
    <?php
    $to 
    "mygmailaccount@gmail.com";
    $subject "Hi!";
    $body "This "
      
    ."is "
      
    ."a "
      
    ."test.";
    $headers "From: hack@theplanet.com\r\n" .
        
    "X-Mailer: php";
    if (
    mail($to$subject$body$headers)) {
      echo(
    "<p>Message sent!</p>");
     } else {
      echo(
    "<p>Message delivery failed...</p>");
     }
    ?>
    This works fine for me even without a valid email address for the sender.

    Took a few minutes for it to get to my inbox though.

  7. #7
    Join Date
    Dec 2007
    Posts
    8

    Default Same Issue

    I am having the same issue. It's something with the server queues being full.

    I have contacted support, 3 hours ago now, and they clarified the issue exists. I have sites with ecommerce systems on them that send automatic emails and the emails weren't going out. I just received an email, on a 6 hour delay.

    Pretty disappointing. Support said it would be fixed within an hour and a half to two hours. Well it's been 3 now, so apparently it isn't fixed as of yet.

  8. #8

    Default

    I think it's fixed, emails just started hitting my inbox from earlier today. I've never heard of server queues being full, is that a common issue?

  9. #9
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,349

    Default

    Some of the mails I sent earlier still aren't in my box so it's not exactly quick, not sure why the mail daemon would be so bogged down.

    As far as I know for the mail function to work all you need is a to, subject and message.

  10. #10
    Join Date
    Dec 2007
    Posts
    8

    Default

    I called Support again to follow up and they said it should all be resolved by tonight. I still have emails out there floating. They said it's not common and I guess they brought in additional servers previously to prevent this from happening but it still did. I'm curious to see how it's handled.

    Hopefully either they can add more servers or figure out what caused the issue and try to stop it from happening again.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts