phplist - new to it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChrisTech
    Senior Member
    • Mar 2004
    • 530

    #1

    phplist - new to it

    what is the correct syntax for setting the batch emails up?

    Was looking around, didn't see it anywhere, or my google skills are slowed due to the rain.
    Hosting at Dathorn since March 2003!

    My Interwebs speed on Charter Cable!
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    Might check the README files:

    Batch processing and shared server configurations

    To process in batches, you can configure two variables:

    MAILQUEUE_BATCH_SIZE - the size of a batch

    MAILQUEUE_BATCH_PERIOD - the time to wait until running the next batch (in seconds)


    ISPs now have the following option available as well:

    They can create a file /etc/phplist.conf that can have the following content:

    ---------
    maxbatch=50
    minbatchperiod=600
    lockfile=/var/run/phplist-processqueue
    ---------

    Max Batch
    Maximum size of a batch that can be assigned by any user on the server
    Any user making a batch larger than this will use this value

    Min Batch Period
    Minimum Batch Period that can be assigned by any user on the server
    Any user making a period less than this will use this value

    Lockfile
    path to a file that if it exists, blocks sending completely

    The last one can be used to disallow sending in certain times of the day.
    It only has to exist, no content is read or displayed. I suppose your users
    will appreciate if it doesn't exist as certain times as well.
    Might need this:


    Running PHPlist from the commandline

    Commandline processing requires PHP 4.3.0 or higher

    A few pages in the PHPlist system can now, as of version 2.7.0 be run with
    a simple command from the commandline.

    the script to use is called "phplist" in the "bin" directory. You will have to edit
    this script to fit your system

    The normal PHPlist access restrictions are bypassed, but the Unix users who are
    allowed to run the script should be mentioned in the "commandline_users" config
    variable. The identity of a user is determined by the USER environment variable, which
    may not always match your system.

    The "p" parameter is the page that needs to be run.
    Currently you can use "send", "processqueue" and "processbounces"

    phplist -psend

    This will require some more arguments:

    -l list
    -s subject
    [-f from]

    and you need to "pipe" the message into the script.

    The -l parameter can have two types of values, the name of the list or the number of the list.
    You can added multiple lists or multiple -l parameters
    The subject can have spaces
    The from is optional. It will default to the system administrator as set up in your config.

    So the full "send" command line would be:

    phplist -psend -s This is the subject -l test 1 2 3 -f me@server.com < messagefile
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    Working...