Kaláka

Mail

Words

Five kinds of mail

Mail is grouped by what causes it. Deciding that a mail is due always means inserting a pending delivery whose unique key (event, mail, registration, occurrence) makes it once-only.

Kind Caused by Decided by
Action an act on one registration: registered, waitlisted, admitted, payment recorded, link regenerated, an extension’s act such as a wallet top-up the use case, inside its own transaction; keyed by the act’s record
Scheduled a point on the event’s calendar, for an audience (e.g. everyone registered) the periodic run, one delivery per registration
Reminder time passing while a condition holds; repeats the periodic run, for each due repeat; keyed by the repeat number
Manual an admin sends to a selection, now or scheduled the admin’s use case; keyed by the send batch
Self-sent the registrant asks for it in the portal (e.g. resend my link), addressed to an email address the portal use case, rate-limited

Configuration

Late registrants and activation

“Late” is measured against the mail’s own send time for that registration, never against registration close or any other date. A registration is late for a scheduled mail when that send time had already passed when it first came within the mail’s reach, which happens in one of two ways:

Each scheduled mail has one late-registrant switch covering both cases:

This holds for mails at a fixed date and for mails at a date type. When an admin activates a mail with the switch off and some registrations are already past their send time, the activation shows how many, and tells the admin that to send to them they can turn the switch on and deactivate and reactivate the mail. The delivery’s unique key stops anyone who already got it from getting it twice; no manual follow-up mail is needed.

A mail whose single fixed send time has already passed cannot be activated.

Content

Sending

Failures

Pausing