# DEI Realty — the HTML shell # Instructions for an agent composing an email. # # Self-contained on purpose. Everything needed to produce a correct branded # email is in this file; you do not need the repository. # # Fetch: https://deirealty.op-site.net/email/client.html # https://deirealty.op-site.net/email/team.html # https://deirealty.op-site.net/email/agent.txt (this file) ## 0 · Before anything — two blockers you must know about ⚠️ THE POSTAL ADDRESS IS REQUIRED AND IS NOT KNOWN. CAN-SPAM requires a valid physical postal address in every commercial email. DEI Realty does not publish one: the site footer carries a phone and "by appointment across Chicago and the surrounding area", and nothing else. It has deliberately NOT been invented. Supply the real registered address in {{postalAddress}}. The renderer THROWS rather than produce a client email without it — that is intentional, not a bug to work around. ⚠️ DEI REALTY HAS NO EMAIL SENDING ADDRESS YET. Notion's "Live Data — Realty" records the SMS number as +1 630-333-9073 and the email as "not yet set". Confirm the from-address with the operator before any send. ## 1 · Pick the shell CLIENT — external. Buyers, sellers, leads. Full lockup, the ink footer with DEI's registered tagline, the phone, Equal Housing Opportunity, and the unsubscribe. Identical for every agent: a client should not care which system wrote to them. The address, the Equal Housing line and the opt-out are required, not decorative. TEAM — internal. DEI Realty staff: agents, transaction coordinators, brokers. Agent output, handoffs, ops reporting. Compact header that names the sending agent. NO tagline, NO postal address, NO Equal Housing line, NO unsubscribe — internal mail is not commercial email, and an opt-out link on staff mail implies a staff member can opt out of being told a closing moved. ROUTING: decide by RECIPIENT, not by inspecting the body. Going to a client, lead or member of the public -> client Going to someone who works at DEI Realty -> team Note for anyone who knows the Chicago shell: that one derives its routing from the stored templates, because Chicago's template table has 77 rows with a recognisable manager-facing subset. DEI REALTY'S TABLE HAS NO EMAIL BODIES AT ALL — its six rows are SMS only. There is no data here to derive a rule from, so do not invent one. Use the recipient. ## 2 · Normalize the body BEFORE putting it in the shell DEI Realty has not written its email templates yet, so today most bodies will be text you compose. Normalize anyway — the moment templates are authored, the same hazard that bit Chicago applies here, and the step is cheap. 1. STRIP ANY OPT-OUT THE BODY BROUGHT WITH IT. Remove a trailing