473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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
Jul 16 '05 #1
1 2098
On 25 Aug 2003 20:24:45 -0700 in
<message-id:85**************************@posting.google.com >
pr******@silesky.com (krystoffff) wrote:
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 !

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

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dave Smithz | last post by:
Hi there, Previously in my PHP code I was using Sendmail to send out emails to people in the MySQL DB. The requirement cam along to be able to send attachments and so I dug around for an easy...
11
by: Wentink | last post by:
Does anybody have a simple script that let's me popup a picture from a thumbnail? The ones i found are all very very complicated and messy in the source... Thanks, Tintin
6
by: Thomas | last post by:
Hi, I'm having a problem with the dynamically created inputfields in Internet Explorer. The situation is the following: - I have a dynamically created table with a textbox in each Cell. - It...
6
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
1
by: Kun | last post by:
I currently have a python-cgi script that extracts data from a mysql table. I would like to save this data as a string and send it to a recipient via email. I know how to send email using the...
0
by: Jorhajnes | last post by:
Hi there. Im very new to making games in flash, although I have used flash for quite some time now in web-based situations so I know my way around. Anyways, I thought it would be fun to try...
4
by: canajien | last post by:
I need to have a php script pull data from a mysql table and send it in the body of an email I know I can get the script to display information in the browser by doing this: $i=0; while ($i...
1
by: vijayarl | last post by:
Hi All, I need to send a email based on the flag value, am using Email::Send module(CPAN). Requirement : 1.Based on the $email_flag, call the send_email function so, script goes like this: ##...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.