Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:mailschedule [26.09.2020 13:58] – [Example] sophia.schaueren:create:functions:mailschedule [09.03.2022 21:59] (current) admin
Line 13: Line 13:
     * '''status'''\\ Send reminder/follow-up emails only if the link in the original serial mail ...     * '''status'''\\ Send reminder/follow-up emails only if the link in the original serial mail ...
       * '''finished''' -- ...opened and the questionnaire was filled out to the end       * '''finished''' -- ...opened and the questionnaire was filled out to the end
-      * '''incomplete''' -- ...was not opened or not filled in to the end+      * '''incomplete''' -- ...was not opened __or__ not filled in to the end
       * '''no-response''' -- ...was not opened       * '''no-response''' -- ...was not opened
     * '''expire'''\\ Limit the validity of the personal participation link, the same format as for the //time//     * '''expire'''\\ Limit the validity of the personal participation link, the same format as for the //time//
Line 48: Line 48:
 <code php> <code php>
 mailSchedule(false, 2, strtotime('+1 month')); mailSchedule(false, 2, strtotime('+1 month'));
-mailSchedule(false, 3, strtotime('+1 month +1 week'), array(+mailSchedule(false, 3, strtotime('+1 month +1 week'), [
   'status' => 'no-response'   'status' => 'no-response'
-));+]);
 </code> </code>
 +
 +
 +===== Custom Fields =====
 +
 +The following command sends the serial mail with the ID 2 on the next Monday at 8 o'clock to the person, who just completes the questionnaire. Instead of the placeholder ''%custom1%'' the serial mail shows the date when ''mailSchedule()'' was called.
 +
 +<code php>
 +mailSchedule(false, 2, strtotime('next Monday 08:00:00'), [
 +  '%custom1%' => date('d.m.Y')
 +])
 +</code>
 +
en/create/functions/mailschedule.txt · Last modified: 09.03.2022 21:59 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki