Author Topic: Send mail stops after 50 emails are sent from my list  (Read 2764 times)

listmail

  • Posts: 5
    • View Profile
Send mail stops after 50 emails are sent from my list
« on: August 22, 2007, 04:51:49 am »
Hi there,
Well I can never be accused of being hasty - you did a great job of installing the software for me in November and I have been running a small list (about 20 people) fine.

A few days ago I set up a test list of 159 users before I go live,  with the sending throttled to one very 8 seconds (I'm with hostgator :-( )

After 50 emails sent the whole thing stops and I have to press the sesume button which is a real pain.
It then runs for another 50 emails....

I'm using internal php mail to do the sending with a 2 min timeout every 500 mails......

Any ideas please?

Thanks

John

ioa

  • Posts: 1
    • View Profile
Send mail stops after 50 emails are sent from my list
« Reply #1 on: August 22, 2007, 10:25:40 am »
I have the same exact problem. We have been LM users for years now, and this just cropped up recently. I have the sending script halting with the following error:

Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in /WEBDIR_OMITTED/listmail/mimepart.php on line 300

We haven't change any configuration settings, or adjusted the type of content being sent out. About 100 to 300 go through before it halts, depending on the send. This is supremely annoying when 15k need to go out!

Any advice?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Send mail stops after 50 emails are sent from my list
« Reply #2 on: August 22, 2007, 07:45:02 pm »
Hi guys,

Please check if your server has a strict PHP script execution time limit using the PHP code found here (copy and paste, upload and browse to it):

http://listmailpro.com/forum/index.php?topic=1747.msg7177#msg7177

On Plesk-based servers PHP "Safe mode" must be disabled for your domain in order for ListMail to run as long as required.  The same may need to be applied on your servers.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

listmail

  • Posts: 5
    • View Profile
Mine ran ok
« Reply #3 on: August 23, 2007, 03:17:36 pm »
For 300 count...
Quote
running...elapsed = 301
Looks good! The script ran for secs

BUT i got this info from the help section of hostgator.....

I have NO idea what it means or how relevant it is  :-)

PHP has been configured to use the following settings on our servers:

safe mode = off
memory_limit = 40M MAXIMUM
max_execution_time = 30 MAXIMUM
post_max_size = 10M MAXIMUM
upload_max_filesize = 10M MAXIMUM
enable_dl = Off

The above settings can not be changed.

We also set the following:

register_globals = On
magic_quotes_gpc = On

These two settings can be changed using a custom php.ini file located in the same folder as the script that requires the settings.


Any ideas?

ps I am not my techie by the way   :-)

R's

John

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Send mail stops after 50 emails are sent from my list
« Reply #4 on: August 23, 2007, 04:57:27 pm »
Hi John,

The maximum execution time limit of 30 doesn't seem to be affecting us.  The test script (and time-consuming ListMail scripts) set the PHP time limit to "0" or unlimited.  With the test script running for 5 minutes I think we can assume this is not happening...

Unfortunately PHP mail doesn't tell us anything about mailing errors.  If mail is sent too fast there is a chance the script could be stopped automatically. I can only recommend increasing the delays between each message and maybe setting the "delay X minutes every X emails" to 0 minutes.

Do you get the same error "ioa" received?
Quote
Fatal error: Maximum execution time of 30 seconds exceeded

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

listmail

  • Posts: 5
    • View Profile
Hi Dean
« Reply #5 on: August 24, 2007, 08:37:00 am »
Delay between emails is set for 18000 mS and 0 mins for 5000 emails....

Still getting the same....ie it stops after 50 emails


What next to try please Dean?

R's


John

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Send mail stops after 50 emails are sent from my list
« Reply #6 on: August 24, 2007, 12:22:53 pm »
Hi John,

Is there an error message or does the script just stop?

You may want to move over to SMTP, so we at least have a log file to look at (enable SMTP log on Config page) but to throttle sending will take a custom hack, mentioned here:

http://listmailpro.com/forum/index.php?topic=1851.0

For hands-on investigation or application of the SMTP throttle code I invite you to please submit your info

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting