email not created if the script goes too fast !

This is a discussion on email not created if the script goes too fast ! within the PHP Language forums, part of the PHP Programming Forums category; Hi all ! I've got a very weird problem ! I was trying to make my PHP script to send emails ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2003
krystoffff
 
Posts: n/a
Default 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0