How to throttle outgoing email with PHPList

This article contains specific instructions on how you can tweak the mailing list program, PHPList, to abide by the Hit Director mailing list policy and send under 20000 emails per day. PHPList is available for automatic install through Fantastico, which is located in your cPanel.

How to throttle PHPList

  1. The first step is to locate the configuration file for your phplist installation. If you have installed the script on your domain in a location such as http://www.domain.com/list/, then the physical path will be:

    /home/username/public_html/list/config/config.php

    Or if you are looking from an FTP program or from the File Manager you if will be:
    /public_html/list/config/config.php

  2. Download this file to your local PC using an FTP program or edit the file with your File Manager in your control panel.
    If you download this file to your PC, you should use a program such as notepad or wordpad to edit the file.

  3. Locate the section of code in this file called "batch processing".
  4. Just below "batch processing", you will see some code as in the following example:

    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",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',0);

    These are the default settings. We will be replacing those to keep the mails under 500/hour.

    Here is the code we suggest:

    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",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',8);

    These settings allows PHPList to throttle 833 mails per hour which comes to 20,000 per day, exactly as our TOS suggests.

  5. Save the file and, if downloaded, FTP it back to it's original location.

Please, remember to make a backup of the original file just in case you mess up.

Now you should be able to send mails without any bounces and not overloading the mailserver.

  • Email, SSL
  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

Deleting the mail in your default inbox (the cur method)

If you see a file called "cur" inside your "mail" folder, use this method to delete default mail...

Why can I not send e-mails?

If you are having difficulty sending e-mails using a program such as Outlook, Outlook Express,...

How to read your e-mail on the web

On the following page you will be asked for the password for that email account.  Once you have...

Collecting your email with Gmail.com

Background: Forwarded email can look like spam You can use your gmail.com account to collect...

POP3 or IMAP with SSL

You must replace your normal mail.domain.com with the secure server name. Please read the...