largersmallernormaltext version of this page

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0010817 [phplist] Batch Processing minor always 26-07-07 12:17 21-01-08 18:50
Reporter timeskipper View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved   Product Version 2.11.3
Summary 0010817: Throttle notification sending when importing users?
Description Ref: http://forums.phplist.com/viewtopic.php?p=34527 [^]

Hi,

I would like to import a file of few thousands emails.
But when I do so and ask for notification/confirmation mail to be sent, phplist send it very fast and thus I get IP blocked.

Is there a conf to throttle the notification sending at import time?

Thanks
Additional Information
Tags No tags attached.
Attached Files

- Relationships
related to 0002705closed PHPList v2.11 release 

-  Notes
(0029832)
hernan (developer)
27-07-07 14:50

Mm, nice find. No there isn't throttle when importing and sending confirmation emails. Right now is only when processing the queue, but will we good to implement this in the next version (2.11)
(0029839)
timeskipper (reporter)
27-07-07 20:02

In the mean time I did this:
- edit admin/import1.php
- find the line:
sendMail($email, getConfig("subscribesubject"), $subscribemessage,system_messageheaders(),$envelope);

- add this right after:
if (MAILQUEUE_THROTTLE) {
sleep(MAILQUEUE_THROTTLE);
}

But in config/config.php, MAILQUEUE_THROTTLE should be defined.

This modification will add a delay of MAILQUEUE_THROTTLE seconds between each mail sent.

For me it is working as I expected.

Will look forward to trying the next version.
(0030017)
hernan (developer)
02-08-07 16:51

Ok, I have added this trick to the import1 and import2.
If you want you can check it out from cvs


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker