DEI Realty · Chicago

The HTML shell

Every email DEI Realty sends goes out in one of two shells. Each is a branded frame around a single empty well — everything around the well is already done.

Two blockers before any external send. DEI Realty publishes no postal address, and CAN-SPAM requires one — the renderer refuses rather than invent it. And DEI Realty has no email sending address yet (Notion records it as “not yet set”).

Client · external

Buyers, sellers and leads. Full lockup, the ink footer with the registered tagline, the phone, Equal Housing Opportunity and the unsubscribe. Identical for every agent — a client should not care which system wrote to them.

Fills: {{preheader}} {{{emailBody}}} {{contactId}} {{postalAddress}}

client.html — fetch this Filled specimen → Well outlined → Empty →

Team · internal

DEI Realty staff — agent output, handoffs and ops reporting. Compact bar naming the sending agent, and a well that styles tables so a rollup arrives ruled and tabular. No tagline, no postal address, no Equal Housing line, no unsubscribe: internal mail is not commercial email.

Fills: {{agent}} {{preheader}} {{{emailBody}}}

team.html — fetch this Filled specimen → Well outlined → Empty →

Pointing an agent at this

Give it /email/agent.txt — the complete contract in plain text: the two blockers, which shell to pick, the four normalization steps, the token list, the opt-out, the pre-send checks and what must not be changed. Self-contained, so an agent does not need the repository.

“Use the HTML shell” on its own is not actionable: normalization lives in scripts/email-shell.mjs inside a private repo.

import { renderShell } from './scripts/email-shell.mjs'

renderShell({ shell: 'client', body, preheader, contactId, postalAddress })
renderShell({ shell: 'team',   body, preheader, agent: 'SMA' })

Routing

Decide by recipient, not by inspecting the body. Going to a client, lead or member of the public → client shell. Going to someone who works at DEI Realty → team shell.

Anyone who knows the Chicago shell will expect a rule derived from the stored templates. There is none here to derive: DEI Realty’s Templates (CSA) has six rows, all SMS, with no email bodies at all. Do not invent one.

Boundary

This is DEI Series LLC. It shares no code, tokens, components or content with the Diamond Equity Investments repo. That shell looks nothing like this one on purpose — different business, different brand, and red is DEI Realty’s action colour where Diamond Equity removed it.