patchcenter/app
Admin MPCZ 97ac7681d2 feat(mail): backend Outlook COM (Windows local) + toggle dans Settings
Resout le probleme de firewall SMTP corporate qui bloque outbound 25/465/587 depuis
les postes de travail. Outlook utilise HTTPS (EWS/Graph) vers O365 -> aucun firewall.

Service mail_outlook_com.py:
- send_via_outlook_com(to, subject, html, cc, display_only): pilote Outlook via COM
  pywin32. Mail apparait dans Sent Items du user, traçable.
- Mode display_only=True ouvre la fenetre de composition Outlook au lieu d'envoyer
  automatiquement (relecture manuelle).
- pythoncom.CoInitialize() pour fonctionner dans un thread uvicorn.

Service mail_service.py:
- send_html_mail dispatche selon Setting 'mail_backend' (smtp / outlook_com).
- Defaut = smtp.

Settings:
- 'mail_backend' = 'smtp' | 'outlook_com'
- 'mail_outlook_display_only' = 'true' | 'false'
- UI: 2 selects en haut de la card SMTP avec hints + le SMTP existant en dessous

Pre-requis Windows: pip install pywin32 + Outlook lance + connecte au compte O365.
2026-05-07 22:24:46 +02:00
..
data Comparaison même semaine 2026 vs 2025: barres, écart pts, objectif, données incomplètes 2026-04-06 23:47:01 +02:00
models PatchCenter v2.0 — Initial commit 2026-04-04 03:00:12 +02:00
routers feat(mail): backend Outlook COM (Windows local) + toggle dans Settings 2026-05-07 22:24:46 +02:00
scripts Qualys agents: bouton Rafraichir + cron 6h 2026-04-11 21:56:59 +02:00
services feat(mail): backend Outlook COM (Windows local) + toggle dans Settings 2026-05-07 22:24:46 +02:00
static BOC SAP corrigé, stop/start order, patch waves, DMZ zone, préférences patching 2026-04-05 03:52:46 +02:00
templates feat(mail): backend Outlook COM (Windows local) + toggle dans Settings 2026-05-07 22:24:46 +02:00
__init__.py PatchCenter v2.0 — Initial commit 2026-04-04 03:00:12 +02:00
auth.py PatchCenter v2.0 — Initial commit 2026-04-04 03:00:12 +02:00
config.py Service iTop REST: synchro bidirectionnelle serveurs + contacts 2026-04-10 23:11:32 +02:00
database.py Mode Demo/Reel au login + base patchcenter_demo 2026-04-10 19:39:35 +02:00
dependencies.py Users/Contacts: workflow profils + LDAP + sync iTop + etat aligne 2026-04-12 18:50:43 +02:00
main.py feat(snapshots): page de gestion snapshots VM (listing + filtre auteur/age + suppression) 2026-05-07 20:13:29 +02:00