What to do to make sure delivery of emails 100% in inbox?

Discussion in 'PHP' started by globalcashsite, Jan 14, 2010.

  1. #1
    Guys

    Right now I am using a small php script using mail() command. Please help me how I can make sure that emails are being delivered into Inbox 100%. Which methods to use?

    GCS
     
    globalcashsite, Jan 14, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    As I know there is no php function for it!!! :(
     
    s_ruben, Jan 14, 2010 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can't guarantee it. It all depends on your server, if you have an SPF record for your domain that matches your ip, and also if you don't have spammy words in there. There is no way you can guarantee them 100% though
     
    JAY6390, Jan 14, 2010 IP
  4. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to guarantee it, use a service like Sailthru or Triggermail.
     
    krsix, Jan 17, 2010 IP
  5. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'd recommend sending it via PHP IMAP, rather than mail().

    Why do it with IMAP? It communicates with email accounts and can allow you to send an email from it.

    For instance, say I had my email (contact@thejoellarson.com) and I wanted it to mail people with a PHP script. I could setup a function using IMAP to connect to the mail server via POP3 or SMTP and email people. It makes it automated and it gets around the header issues that you have to deal with.

    Hope this helps :)

    http://www.devarticles.com/c/a/PHP/Create-Your-Own-Mail-Script-With-PHP-and-IMAP/
     
    Last edited: Jan 17, 2010
    CodedCaffeine, Jan 17, 2010 IP
    JAY6390 likes this.
  6. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nice contribution :)
     
    JAY6390, Jan 17, 2010 IP
  7. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Wonderful suggestion. :)

    Right now what I did the following to make sure emails are being delivered into Inbox from my php script

    1.) Setup a brand new domain (not ever used to sending emails)
    2.) Bought brand new hosting for this domain (not using my existing)
    3.) Enabled Domainkey & SPF for that domain from cpanel
    4.) Got maximum per hour email limit from hosting that is 300
    5.) Keeping my outgoing emails 240 per hour (80% of available limit)
    6.) Add unique 3 digits at the end of subject to make unique subject for each email
    7.) Using 10 seconds timer between each email delivery

    Here is what I got from google email header

    By enabling record at least Google is permitting my emails and delivering into Inbox and I will never send bulk and keep this formula. :)

    Now I can send 240 x 24 = 5760 emails daily automatically into Inbox. :)

    What is your opinion about above?

    GCS
     
    globalcashsite, Jan 17, 2010 IP
  8. shaliwahan.pati

    shaliwahan.pati Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Some additions to that.. After done with adding the spf you have to personally mail the top required domains like google, yahoo, rediff, and report them about your domain. They will go through the domain records and (if everything is ok) they add it to the allowed list in next 48 hours.
     
    shaliwahan.pati, Jan 17, 2010 IP
  9. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How to do that i.e contact them any email address? It will be great if we can do this easily.

    GCS
     
    globalcashsite, Jan 17, 2010 IP
  10. shaliwahan.pati

    shaliwahan.pati Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    shaliwahan.pati, Jan 17, 2010 IP
  11. shaliwahan.pati

    shaliwahan.pati Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
  12. shaliwahan.pati

    shaliwahan.pati Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Last edited: Jan 17, 2010
    shaliwahan.pati, Jan 17, 2010 IP
  13. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    My SPF and DomaiKey is already enabled and at least for gmail my emails are moving into Inbox.

    This command "$headers .= "X-Mailer: PHP's mail() Function\n";" is new for me in php email header? My header don't include this line. I have "X-Mailer: PHP 4\r\n" in my header, a little change.

    GCS
     
    globalcashsite, Jan 17, 2010 IP
  14. imkane

    imkane Active Member

    Messages:
    94
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #14
    I'd recommend https://winning.email - it'll check your domain/IP for any deliverability issues, and tell you how to fix them.
     
    imkane, Jun 7, 2014 IP
  15. vruvishal

    vruvishal Member

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #15

    Hi

    You need to sent email by using SMPT Authentication Method (using PHPMAILER).
     
    vruvishal, Jun 8, 2014 IP
  16. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #16
    You CAN send 5760 emails a day - problem you're facing is that as people trigger your emails as spam (there are no other reasons to send emails this regularly, apart from spam-emails), the rating of your domain will go down. And eventually, if enough people mark it as spam, you'll get blacklisted, and the SPF and domain triggers will have f*ck-all to do with anything.
     
    PoPSiCLe, Jun 9, 2014 IP
  17. vouchme

    vouchme Greenhorn

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #17
    Its not a problem of php, you can use mail function of the php but you should have better server which is not blacklisted.
     
    vouchme, Jun 13, 2014 IP
  18. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #18
    Really? Stating the obvious? Do people even read the thread they're replying to these days?
     
    PoPSiCLe, Jun 14, 2014 IP
  19. imkane

    imkane Active Member

    Messages:
    94
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #19
    Yeah, and saying SMTP is a solution to email delivery is just silly.
     
    imkane, Jun 14, 2014 IP
  20. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #20
    Your functions sound great, could you share the script with us?
     
    misohoni, Jun 16, 2014 IP