Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:create:functions:mailschedule [26.09.2020 13:58] – [Example] sophia.schauer | en:create:functions:mailschedule [09.03.2022 21:59] (current) – admin |
---|
* '''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// |
<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> |
| |