Files

1.5 KiB

CMS-U11 — Recipient address from the site settings (summary)

  • Backend: nullable RecipientEmail on ContactSettings (migration ContactSettingsRecipient); IContactSettingsService.GetEffectiveRecipientAsync (setting > env > none) and SetRecipientAsync (wakes the mail sender); ContactMailSender reads the recipient per send (NotReadyReasonAsync); GET /contact-settings + recipientEmail/recipientSource (the env address is never returned); PUT /contact-settings/recipient; OpenAPI regenerated.
  • Frontend: RecipientCard next to the form switch (field, save, back to the server setting, source text, client + server validation, translated), warning banner on the switch card while there is no address (no blocking). nl/en.
  • Tests (new/changed): resolution order, invalid stored value ignored, admin view never shows the env address, set/clear, signal, sender uses the setting without a restart, no address = not ready + nothing sent, controller (valid/trimmed/blank/invalid/CRLF/too long/missing body), pipeline on the real host (login/role, view, set/invalid/clear, no leak in the public token response, a stored-but-pending message goes out after the address is set), route-table test, OpenAPI snapshot; frontend (field, save, invalid client/server, clear, banner without blocking). The existing outgoing contact mail tests keep their intent (only their construction and the async NotReadyReasonAsync signature were adapted).
  • Decisions (approved): warn instead of block; the env address is not shown; the field sits on the Berichten page.