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)
'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.The following PHP code sets the status “questionnaire completed” for the mailing that led the current respondent to the questionnaire.
mailSetStatus(null, null, 'complete');