v366 continues the CORI Mail track after v365. The goal is to make CORI Mail ready for real provider connection work while keeping the user interface simple, safe, and easy for dispatch users.
Continue deepening CORI Mail before moving to another CORI-first surface.
Email is a core trucking work channel. Brokers, shippers, dispatchers, drivers, accounting teams, and paperwork teams all use email. CORI Mail should become a plain-language operating surface where users do not have to hunt through an inbox or decide what to say from scratch.
/cori/mail..env.example.CORI may draft, explain, stage, and prepare email actions. CORI must not send a real email until the user approves the final message.
SMTP passwords, OAuth tokens, and provider secrets must be stored only in encrypted server-side storage. They must not be stored in browser localStorage.
Use simple words: Add SMTP credentials, From email, App password, Test setup, Stage safe save, Encrypted server save next.
Avoid confusing words on the user-facing page unless they are required by the email provider.
No Prisma schema changes were made in v366.
Persistent provider accounts, encrypted SMTP credentials, provider tokens, drafts, work actions, and send audit records should be added in a later schema-backed build.