Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-03-2007, 09:32 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
Default Mass mail sending issue!

I am using ZF for an application that sends emails to my members.
ZF version 0.9.2

I am facing a very strange problem!
I am looping on my members emails and try to send an email as :
Quote:
foreach($membres AS $email){
$email = new Zend_Mail();
...
$email->send();
}
My script sends about 15 emails and gets stucked...
Then I tried
Quote:
foreach($membres AS $email){
$email = new Zend_Mail();
...
$email->send();
unset($email);
}
And I get 17 emails sent!
I also tried to changed the content of my email and could get 21 emails sent!

I thought about a memory issue but seems strange for only 21 emails!
What else could it be?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 08:26 PM
Junior Member
 
Join Date: Jan 2008
Posts: 12
Default

Your hosting may stop you and treat you as a spammer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 09:19 PM
Junior Member
 
Join Date: Apr 2008
Posts: 8
Default

I think it's because of the execution time limit. Set it to unlimited:

set_time_limit(0);

Also, this can be overridden in the php.ini file by your hosting company.

More: PHP: set_time_limit - Manual
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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



All times are GMT. The time now is 10:24 AM.