How to check whether the mail has been successfully send using mail function in php?

Discussion in 'PHP' started by astle000, May 31, 2010.

  1. #1
    please reply me..............
     
    astle000, May 31, 2010 IP
  2. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Just use Echo and Display them in the browser
     
    roopajyothi, May 31, 2010 IP
  3. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Check the documentation;

    http://php.net/manual/en/function.mail.php

    Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

    Of course, this only confirms that the PHP mail function completed successfully - you wont be able to check if there was a problem with SMTP transport later on.....
     
    lukeg32, Jun 1, 2010 IP
  4. ysb888

    ysb888 Active Member

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #4
    Thank! I also want to know about this!
     
    ysb888, Jun 1, 2010 IP