server: Mailer — page-ready email over SMTP, outbox for dev/e2e (phase-2 plan Task 5) #32
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
docs/superpowers/plans/2026-08-28-coa-phase-2.mdTask 5.Deliverable
server/src/mailer.ts:Mailer { sendPageReady(PageReadyMail) }, purerenderPageReadyEmail(m, from) → Mail(text + html),smtpMailer(env)(nodemailer,secureonly on 465, optionaltls.servername),outboxMailer(dir, from)(one JSON file per mail),mailerFromEnv(process.env)(SMTP whenSMTP_HOSTset, else outbox atCOA_MAIL_OUTBOX ?? '.outbox'). Deps:nodemailer@^6.10,@types/nodemailer,@coa/templates(forescapeHtml).AppDeps.mailer+AppDeps.publicUrl(COA_PUBLIC_URL, trailing slash stripped)..env.example:SMTP_FROM,SMTP_TLS_SERVERNAME,COA_MAIL_OUTBOX;.gitignore.outbox/. Testsserver/test/mailer.test.ts.Copy (draft — product-decision, veto on this ticket)
Subject
Your <name> app page is ready. Body: "Kia ora, / Your community page for is live: / It shows "build pending" for now — we'll email you again when the installers are built. / Ngā mihi, Matou".Acceptance
from/toset; community name escaped in HTML.tomatches.smtpMaileris only constructed, never exercised, in tests.depends_on
out_of_scope
Sending from
/api/submit(Task 6); the real SMTP password (human ticket).Phase gate
No build dispatch, no
coa-sharedprovisioning, no status transitions beyondpage-ready(phase 3). Never delete or rewrite anything undercommunities/(ADR 0002/0003).Claimed by the interactive session — working plan Task 5 next (after #30 merges). Using the draft copy from the ticket; the product-decision veto on the wording stays open for Ben, and a later copy change is a one-line commit.