View Issue Details

IDProjectCategoryView StatusLast Update
0010817phplist applicationBatch Processingpublic21-01-08 18:50
Reportertimeskipper 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.11.3 
Target Version4.0.xFixed in Version4.0.x 
Summary0010817: Throttle notification sending when importing users?
DescriptionRef: 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
TagsNo tags attached.

Relationships

related to 0002705 closed PHPList v2.11 release 
related to 0011936 new use campaign system to send re-request for confirmation 

Activities

user1308

27-07-07 14:50

  ~0029832

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)

timeskipper

27-07-07 20:02

reporter   ~0029839

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.

user1308

02-08-07 16:51

  ~0030017

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