PHPlist

From A2Wiki

Jump to: navigation, search

Configuring PHPList to send fewer than 500 emails per hour

A2hosting's mail policy prevents it's servers from sending more than 500 emails per hour out from an account. In the case that you have a mailing list that has more than 500 members, you will need to throttle the list somehow in order for all of your emails to be delivered properly.

Fortunately PHPlist has a simple method for doing this:

  1. Locate the config file for your phplist installation. If you have installed the script on your domain with a URL like http://www.domain.com/list/ then the physical path will be:
    /home/username/public_html/list/config/config.php 
  2. Download this file to your computer.
  3. Open the file in your favorite plaintext editor.
  4. Locate the section called "Batch Processing"
  5. You will see the following code:
# define the amount of emails you want to send per period. If 0, batch processing
# is disabled
define("MAILQUEUE_BATCH_SIZE",0);
# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

To keep your outgoing emails from exceeding 500 per hour, we would recommend changing this section to the following:

# define the amount of emails you want to send per period. If 0, batch processing
# is disabled
define("MAILQUEUE_BATCH_SIZE",400);
# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

Then save this file and upload it to its location on your server. Remember to make a back up of the original config file, in case you make a mistake.

Personal tools