email not created if the script goes too fast !

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • krystoffff

    email not created if the script goes too fast !

    Hi all !

    I've got a very weird problem !

    I was trying to make my PHP script to send emails to every subscribed
    member to go faster (each email takes 1 or 2 seconds to be sent !) so
    I tried to send my emails directly with Sendmail instead of the
    function mail(), with the option "-odb" (delivery in background).
    With this option, the script was really faster, but I noticed that all
    the emails were not delivered !

    I wrote a simple PHP with just a loop that sends 100 emails of 20 kb
    each, with Sendmail and the delivery in background, and the results
    are very weird !
    - normal script (just the loop) : only 50 emails delivered (76.30
    seconds)
    - script + sleep(0.5) after each email : 78 emails delivered (83.33
    secs)
    - script + sleep(1) after each email : 100 emails delivered (149.44
    secs)

    I also noticed that if the email gets bigger, fewer of them are
    delivered !

    I looked in the queue directory of Sendmail: nothing !


    Is it possible that if a script goes too fast (I don't think 76 secs
    for 100 emails is very fast, but ...), an email is not correctly sent
    ?!

    Has anybody an idea ?!
    Thanks
    Krystoffff
  • Ian.H [dS]

    #2
    Re: email not created if the script goes too fast !

    On 25 Aug 2003 20:24:45 -0700 in
    <message-id:85898f7e.030 8251924.22c4be2 b@posting.googl e.com>
    proghome@silesk y.com (krystoffff) wrote:
    [color=blue]
    > Hi all !
    >
    > I've got a very weird problem !
    >
    > I was trying to make my PHP script to send emails to every subscribed
    > member to go faster (each email takes 1 or 2 seconds to be sent !) so
    > I tried to send my emails directly with Sendmail instead of the
    > function mail(), with the option "-odb" (delivery in background).
    > With this option, the script was really faster, but I noticed that
    > all the emails were not delivered ![/color]


    Do it properly.. and BCC the mails.. problem solved =)


    Regards,

    Ian

    --
    Ian.H [Design & Development]
    digiServ Network - Web solutions
    www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
    Programming, Web design, development & hosting.

    Comment

    Working...