preventing spam

Discussion in 'PHP' started by UCDaZ, Mar 11, 2009.

  1. #1
    My app allows users to invite their friends by email asking them to join. I'm afraid that if one user invites over 200+ friends from his/her email contact list, will those emails be blocked?
    How do I prevent my emails from going into the spam filter?
     
    UCDaZ, Mar 11, 2009 IP
  2. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Contact your hosting provider and ask them these questions. hosting providers will lock accounts that sends out XX amount of emails. It all depends on your host provider.

    Also, the spam trigger is very easy to pull and anything sent without permission from the email account holder is spam. IE can be blacklisted.
     
    exodus, Mar 11, 2009 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    Edit the app.

    
    if ($friends > 200) exit;
    
    PHP:
     
    Kaizoku, Mar 11, 2009 IP
  4. theseoguy

    theseoguy Active Member

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #4
    put a captcha code in to prevent bots. encrypt the html form with javascript to further prevent bots from finding your form. log ip addresses and if the user puts more than X friends don't send and put a cap in place so that IP cannot send any more mail using your form. Also append a link in the email saying something along the lines of "if you received this message as spam click here to report it"
     
    theseoguy, Mar 12, 2009 IP
  5. UCDaZ

    UCDaZ Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    But if I use my google smtp server, would be more safe. Does google have a limit on how many emails you can send out with their smtp server?
     
    UCDaZ, Mar 12, 2009 IP
  6. mighty_falcon

    mighty_falcon Member

    Messages:
    67
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    Yes it does, I believe its 50 per session. Using the Google SMTP is the safest bet just make sure u pause the loop or howerver ur using it every 50 emails. If you are doing it through ur host make sure u enable SPF on your domain.

    Another thing i would recommend is using SWiftMailer to help you out alot. It is a PHP to send mail through SMTP (you can use it to send emails through gmail or ur webhost)
     
    mighty_falcon, Mar 12, 2009 IP
  7. UCDaZ

    UCDaZ Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    How about using some sort of Smtp relay? Would that help increase my email quota?
     
    UCDaZ, Mar 12, 2009 IP