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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Spider
Forum Newbie
Posts: 1
Joined: Thu Jan 06, 2005 9:32 pm

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

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

could be running out of memory. check your error logs..
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post 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.
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post 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
-
Post Reply