largersmallernormaltext version of this page

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010817phplistBatch Processingpublic26-07-07 12:1721-01-08 18:50
Reportertimeskipper 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.11.3 
Target Version2.11.XFixed in Version2.11.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.
Attached Files

- Relationships
related to 0002705closed PHPList v2.11 release 
related to 0011936new Resend the request for confirmation does no seem to conform to throttle or batch settings in config.php 

-  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


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker