PHP Classes

Sending stops after every 1700 emails or so

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Sending stops after every 1700...  >  (Un) Subscribe thread alerts  
Subject:Sending stops after every 1700...
Summary:I'm using simple sendmail to send bulk mails but it stops
Messages:5
Author:zeeshan khalid
Date:2006-08-22 09:59:51
Update:2006-11-19 12:08:12
 

  1. Sending stops after every 1700...   Reply   Report abuse  
Picture of zeeshan khalid zeeshan khalid - 2006-08-22 09:59:51
Hey,

I'm using simple email_message class to send personalised bulk emails. It always stops after every 1700 emails or so and then i have to restart it again after changing the Mysql query to pick the rest of the users. I have tried SMTP class as well but same problem.

I've never had this problem before. I have used phpmailer class form phpclasses.

Could you please advise to fix for this issue. Thanks for your help and for making these classes available.



Zeeshan

  2. Re: Sending stops after every 1700...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-08-22 17:26:18 - In reply to message 1 from zeeshan khalid
Maybe you are exceeding the PHP script execution time limit. The default is 30 seconds.

If that is the case, just use set_time_limit(0); to override the time limit. It only works if PHP is not running in safe mode.

php.net/set_time_limit

  3. Re: Sending stops after every 1700...   Reply   Report abuse  
Picture of zeeshan khalid zeeshan khalid - 2006-08-23 14:49:05 - In reply to message 2 from Manuel Lemos
alright thanks, I'll give it a go next time I send emails out and let you know if it worked.


Thanks for your help

  4. Re: Sending stops after every 1700...   Reply   Report abuse  
Picture of Martin Mueller Martin Mueller - 2006-11-18 22:42:43 - In reply to message 3 from zeeshan khalid
Hello!

If safe_mode is on and you are not able or willing to turn it off,
you could try to send e.g. 500 Mails at first time, send a header() to the script that is sending the Mails to start it again and to reset the php_execution_time. Now send the next 500 Mails and so on.

I've read, that this is possible, but I'm not processing that much Email in one turn ;-)

Greetings

  5. Re: Sending stops after every 1700...   Reply   Report abuse  
Picture of Steve Buzer Steve Buzer - 2006-11-19 12:08:12 - In reply to message 4 from Martin Mueller
I had a similar problem some time back -- found out my ISP had put a limit on the number of email per hour without notifiying me.

--steve