Maj supervisor_watchdog

This commit is contained in:
2025-06-16 13:23:23 +02:00
parent a897bbc486
commit e8a455096b
2 changed files with 4 additions and 5 deletions

View File

@@ -31,12 +31,12 @@ if envoyer_mail:
msg = MIMEText(contenu)
msg["Subject"] = sujet
msg["From"] = "alertes_saclay@domo91.fr"
msg["From"] = "supervisor@domo91.fr"
msg["To"] = "services@domo91.fr"
try:
with smtplib.SMTP_SSL("smtp.mail.ovh.net", 465) as server:
server.login("alertes_saclay@domo91.fr", "Kdpke674y23Feq^H")
server.login("supervisor@domo91.fr", "4j%6A63$F##x7h")
server.sendmail(msg["From"], [msg["To"]], msg.as_string())
print("📧 Mail envoyé.")
except Exception as e: