mail() error

Discussion in 'PHP' started by Fracisc, Oct 27, 2010.

  1. #1
    For some reason my e-mails no longer get sent. How can I find out why? The mail() function worked a few days ago. Is there any way to print the error?
     
    Fracisc, Oct 27, 2010 IP
  2. KingOle

    KingOle Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried creating a test page using the email function? Any output at all?
     
    KingOle, Oct 27, 2010 IP
  3. adexpert10

    adexpert10 Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think there is sending mail limits on your server contact your hosting provider and confirm
     
    adexpert10, Oct 27, 2010 IP
  4. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    #4
    The mail() function is up because I have no errors. A limit could be an explanation but then.. it is set to zero. No e-mail was sent from the server today.
     
    Fracisc, Oct 27, 2010 IP
  5. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Have you tried checking the response from the mail function in the script? It's pretty hard to break it, mind, and if its been working previously its probably
    upsteam from the function itself.

    What does your mail logs say happened to the mail? (/var/log/mail.log possibly, depending on your system)
     
    lukeg32, Oct 27, 2010 IP