PHP email

Discussion in 'PHP' started by Alexj17, May 27, 2010.

  1. #1
    Hi All

    I have a website that users can submit comments and messages to each other. When a message is received i have set it up that they get an email. Now this email is being sent to their junk mail. Is there anyway to avoid this? The email address is one i have created so it not a common one like gmail or hotmail.

    Any ideas what to do as i dont really want people to miss the email.

    Thanks
    Alex
     
    Alexj17, May 27, 2010 IP
  2. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #2
    Can you show us the line of code that you use to send the e-mail. It may be something with the headers.
     
    Pudge1, May 27, 2010 IP
  3. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #3
    mfscripts, May 27, 2010 IP
  4. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #4
    request a removal from spamhaus, also your reverse ip should point to your domain (though optional)
     
    gapz101, May 27, 2010 IP
  5. trevHCS

    trevHCS Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    As above it's worth checking you're server isn't on any blacklists. Look for a site dnsbl.com (system won't let me link), and that seems to check quite a few of them. If it's the same server as the one in your sig then it doesn't look like you're on any lists. Are the emails getting spam blocked by everyone or just people like Hotmail, AOL, Gmail and such?

    - Hotmail can be a bit iffy about accepting anything from a domain that doesn't have it's SPF record set although I think you can set the domain to be "not spam" somewhere in the settings. Did this once for someone.

    - Yahoo unless they've changed pretty much won't accept mail from anyone who doesn't have a SPF record in their domain.

    - Gmail seem to be not too bad. They're a bit more intelligent, but sometimes still block stuff wrongly.

    If it's more generalised then suspect it might be overuse of links in the message or perhaps something as simple as the server date is wrong as things like Spam Assassin seem to check for that, especially dates in the future. Try sending yourself one and make sure it's coming through with a normal looking date.

    Finally, assuming you're using PHP are you sending just via mail() or using some 3rd party class to send the emails?

    Trev
     
    trevHCS, May 27, 2010 IP