This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:
 

mailSetStatus()

The function mailSetStatus() updates the participation status of a mailing. The status is particularly relevant for sending reminders and follow-up mailings.

void mailSetStatus(string|null personID, int|null mailing, string status)

  • personID
    A person ID (SERIAL) or NULL, if the delivery to the current respondent shall be updated.
  • mailing
    The ID of a mailing or NULL, if the status of the most recently sent mailing shall be updated.
  • status
    • 'sent' – The mailing was sent, but the participation link has not been clicked yet.
    • 'started' – The participation link was clicked, but the questionnaire was not completed.
    • 'complete' – Filling out the questionnaire was completed.
    • 'dismissed' – The person was rejected, e.g., by a screenout or a quota check.

Example

The following PHP code sets the status “questionnaire completed” for the mailing that led the current respondent to the questionnaire.

mailSetStatus(null, null, 'complete');
en/create/functions/mailsetstatus.txt · Last modified: by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki