"Fossies" - the Fresh Open Source Software Archive

Member "phplist-3.5.0/doc/README.commandline" (14 Jan 2020, 1266 Bytes) of package /linux/www/phplist-3.5.0.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 Running phpList from the commandline
    3 
    4 Commandline processing requires PHP 4.3.0 or higher
    5 
    6 A few pages in the PHPlist system can now, as of version 2.7.0 be run with 
    7 a simple command from the commandline.
    8 
    9 the script to use is called "phplist" in the "bin" directory. You will have to edit 
   10 this script to fit your system
   11 
   12 The normal PHPlist access restrictions are bypassed, but the Unix users who are
   13 allowed to run the script should be mentioned in the "commandline_users" config
   14 variable. The identity of a user is determined by the USER environment variable, which
   15 may not always match your system.
   16 
   17 The "p" parameter is the page that needs to be run. 
   18 Currently you can use "send", "processqueue" and "processbounces"
   19 
   20 phplist -psend
   21 
   22 This will require some more arguments:
   23 
   24 -l list
   25 -s subject
   26 [-f from]
   27 
   28 and you need to "pipe" the message into the script.
   29 
   30 The -l parameter can have two types of values, the name of the list or the number of the list. 
   31 You can added multiple lists or multiple -l parameters
   32 The subject can have spaces
   33 The from is optional. It will default to the system administrator as set up in your config.
   34 
   35 So the full "send" command line would be:
   36 
   37 phplist -psend -s This is the subject -l test 1 2 3 -f me@server.com < messagefile
   38 
   39