PHPList Email Throttling

As we are primarily a website hosting provider we limit email sending to 150 emails per hour. If you wish to send out a mailing list to individuals that agree to receive that email you can use several scripts that support email throttling to do so and meet this requirement.

To limit the amount of email PHPList sends per hour locate your config file for your PHPList installation.

If you have installed the script on your domain with URL like http://www.domain.com/phplist/ then the physical path will be :

/home/username/public_html/phplist/config/config.php

In FTP you would see

/public_html/phplist/config/config.php

2. Download this file to your PC/Mac.

3. Make a backup of this file just in case.

4. Edit the file in a text or html editor of your choice.

5. Locate the section called as "batch processing".

6. Just below you will see some the following code :

# define the amount of emails you want to send per period. If 0, batch processing
# is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",0);

# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",0);

# to avoid overloading the server that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',0);

Replace with:

# define the amount of emails you want to send per period. If 0, batch processing
# is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",100);

# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',1);

These settings tell phplist to send 100 mails per hour. Why only 100 when there is a 150 email limit? This allows you breathing room for bounce back emails and other emails coming through.

7. Save the file and ftp it back to its original location.

Now you should be able to send emails without any bounces and not overloading the server.


Limiting how much email PHPList sends at a time through throttling.

  • 846 Users Found This Useful

Was this answer helpful?

Related Articles

Turn off PHP error messages via htaccess

From time to time you may encounter a script which has error messages you do not wish to see....

How to turn off magic quotes gpc for Joomla 3

Add the line "php_flag magic_quotes_gpc off" to the .htaccess file. If one does not exist create...

Coppermine Gallery cannot create thumbnails

If Coppermine Gallery will not resize photos and shows an error please try the following... In...

Best WP Plugins

The best wp plugins we believe at this time are W3Total Cache, WordFence, Yoast SEO and iThemes...

Tiki Wiki: Notice: Only variable references should be returned by reference

You can find the latest version of ADODB here. To modify the function to not return a...