meta data for this page
Differences
This shows you the differences between two versions of the page.
| system:config:use_repetition [2013/08/20 17:24] – created phplist | system:config:use_repetition [2015/03/19 19:39] (current) – phplist | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ---- dataentry configoptions ---- | ||
| + | type : constant | ||
| + | name : USE_REPETITION | ||
| + | purpose | ||
| + | allowed | ||
| + | default | ||
| + | status_s | ||
| + | category | ||
| + | ---- | ||
| + | |||
| + | |||
| + | |||
| + | When using repetition phpList will create an exact copy of the campaign. As a result, this should only really be used when sending a URL or other dynamic content. | ||
| + | |||
| + | Another good use is when using file system attachments. If you want phpList to send you some file from the server at a regular interval, | ||
| + | |||
| + | ==== Exclusion of times and dates ==== | ||
| + | |||
| + | |||
| + | Even if you set phpList to send every certain interval, you can still tell it to | ||
| + | NOT send (ie re-schedule) the message at certain moments. You do this as follows: | ||
| + | |||
| + | You add the following to your config file | ||
| + | < | ||
| + | # exclude dates for repetition | ||
| + | $repeat_exclude = array( | ||
| + | array(" | ||
| + | array(" | ||
| + | ); | ||
| + | ## end | ||
| + | </ | ||
| + | |||
| + | Now that needs a bit of explanation. You can add as many entries as you like and | ||
| + | the format is as follows: | ||
| + | |||
| + | one entry is formatted | ||
| + | < | ||
| + | array(" | ||
| + | </ | ||
| + | |||
| + | where the bits between [ and ] can be chosen as you like it, but they have to fit | ||
| + | the following: | ||
| + | |||
| + | [format] needs to be a Mysql data format string which you can find at | ||
| + | http:// | ||
| + | |||
| + | [list of values] needs to be a list of values that this format can return, | ||
| + | which then, if matched with the new " | ||
| + | message for that date, but instead increases the " | ||
| + | next one in a row. | ||
| + | |||
| + | So for example for excluding the weekend you use | ||
| + | '' | ||
| + | '' | ||
| + | and for excluding specific dates you can use | ||
| + | '' | ||
| + | '' | ||