Maj supervisor_watchdog
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user