PHP mail function returns false

Discussion in 'PHP' started by ChocolateLover, Aug 15, 2008.

  1. #1
    The PHP mail function is returning false, but does actually send the email.

    Is there a way to determine why the function is returning false?

    Thanks
     
    ChocolateLover, Aug 15, 2008 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    rohan_shenoy, Aug 15, 2008 IP
  3. ChocolateLover

    ChocolateLover Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually, I've just realised, it's not returning false, it's just not returning anything.
     
    ChocolateLover, Aug 15, 2008 IP
  4. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Then its probably working fine!
     
    rohan_shenoy, Aug 15, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Use var_dump to see what it's actually returning, i.e. var_dump(mail(...));

    Jay
     
    jayshah, Aug 15, 2008 IP