mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
Mail queue keeps what a sent email said: only an email with a link or code that opens something - a shared login and its code, a portal or agent invite, a password link, a contract to sign or a task to approve - is cleared once sent, and a day after it was queued if it failed or was cancelled; emailQueue gains a sensitive option set by those senders, cron marks sent email with mailQueueSentSql, nightly runs mailQueueClearSensitive, and a cleared email can't be retried; database 3.7.1 adds email_queue.email_sensitive and marks email waiting at the update; 26.11.9 changelog entries
This commit is contained in:
@@ -398,7 +398,7 @@ function userInviteMail($invite_id, $token) {
|
||||
'summary' => $summary,
|
||||
'button' => ['label' => 'Accept the invite', 'url' => userInviteUrl($row['invite_id'], $token)],
|
||||
'after' => ['The invite works for ' . USER_INVITE_LINK_DAYS . ' days. If you were not expecting it, you can ignore this email - nothing is set up unless the link is used.'],
|
||||
]);
|
||||
], ['sensitive' => true]);
|
||||
if ($sent && !emailCapturing()) {
|
||||
mysqli_query($mysqli, "UPDATE user_invites SET invite_sent_at = NOW(), invite_sent_count = invite_sent_count + 1 WHERE invite_id = " . intval($row['invite_id']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user