I use PHP Mail() Function to send confirmation emails - some don't receive them

Discussion in 'PHP' started by BRUm, Jan 8, 2007.

  1. #1
    Hi,

    I use PHP's Mail() Function to send confirmation emails with an activation link in it, to users after the sign up to my site. However, many have complained that they do not receive the emails despite looking through their junk filters etc... some however, do get them.

    Is this because hotmail or Yahoo or other email providers automatically block incoming emails from unaccounted-for senders? Do I need special headers?

    Help appreciated,

    Lee.
     
    BRUm, Jan 8, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you checking there aren't any problems trying to send it?

    I.e. you check the return value of mail() to be true/false rather than just having the mail() function on its own.
     
    rodney88, Jan 8, 2007 IP
  3. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #3
    It's fine. I receive the emails and many other do too. Yet, some don't. I've checked the validity of the emails in question, and they're fine.
     
    BRUm, Jan 8, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    nico_swd, Jan 8, 2007 IP
  5. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #5
    OK thanks :)
     
    BRUm, Jan 8, 2007 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    nico_swd, Jan 8, 2007 IP
  7. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #7
    Rep added ;) thanks
     
    BRUm, Jan 8, 2007 IP