Page 1 of 1

Email Class stops working after 5 successful emails....

Posted: Thu Jan 06, 2005 9:35 pm
by Spider
I've written some code to run through my database and send emails to a list of people. The email class works 5 times and then stops working every single time. It's not a data issue, but something else....any ideas?

I'm creating the object, sending the email, and then unsetting it before starting over with the next person.

Thanks,
John

Posted: Thu Jan 06, 2005 9:38 pm
by feyd
could be running out of memory. check your error logs..

Posted: Thu Jan 06, 2005 11:20 pm
by Trenchant
There could also be a limit to how many emails a script can send out. I have seen some webhosts that will limit the ammount of outgoing emails.

Posted: Sat Feb 05, 2005 4:26 am
by djot
-
Hi,

How long does it take to send these 5 emails? It's always exactly 5 emails that are send?

I think of max execution time, your script gets terminated before all emails could be send. How long does it take to send one email? If it's about 5seconds (eventually connecting to smtp?) you can run into problems when max_execution time is set to about 30seconds.

djot
-