Access Cutoff Warning Email Template (templates/access-cutoff-warning.ts)

lms-front · lib/email/templates/access-cutoff-warning.ts · typescript · MIT
email, payments, chat, tag:templates, tag:lms

Generates multi-stage subscription access expiration and warning emails for LMS platforms. Use to notify schools about overdue billing.

// Source: https://github.com/guillermoscript/lms-front | License: MIT | Copyright 2026 Guillermo Marin
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Access-cutoff notification emails (issues #494, #517).
 *
 * #494 sent a single message at scheduling time. #517 turned that into a
 * ladder — scheduled → T-7 → T-1 → enforced — so the template has to speak in
 * four registers, the last of which is past tense: by the time `enforced`
 * goes out, students have already lost access and telling them it "will be"
 * restricted would be wrong.
 *
 * The per-stage copy is deliberately explicit about the blast radius (every
 * student, all courses) because that is the fact a school most needs and is
 * least likely to infer — see the "Blast radius" section of docs/MONETIZA

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key