Light-theme access emails + inline cid logo instead of broken data-URI

Outlook desktop (Word rendering engine) does not support data: URI
images at all - the logo in approval/rejection emails was silently
dropped there. Fix:

- app/static/logo-email.png: logo asset, attached as an inline MIME
  part with Content-ID instead of base64-embedded in <img src>
- app/main.py _send_email(): builds a multipart/related message and
  attaches the logo as cid:mont_logo whenever html_body references it
- all 6 client-facing access emails (approve/reject x 3 call sites):
  switched from dark gradient theme to a light theme (solid white
  card, dark text) - Outlook does not support CSS gradients either,
  so the old dark card + light text would have rendered as invisible
  light text on a default white background on top of the missing logo
- footer contact address: mont@mont.ru -> RGalyaviev@mont.ru

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 06:01:00 +00:00
parent 40de4d5a0f
commit 9e525a44c3
2 changed files with 118 additions and 91 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB