Update smtp.py

This commit is contained in:
SpudGunMan
2024-12-09 17:52:12 -08:00
parent a3995f7cce
commit c45cf5d207
+1 -1
View File
@@ -51,7 +51,7 @@ def send_email(to_email, message, nodeID=0):
server.login(SMTP_USERNAME, SMTP_PASSWORD)
# Send email; this command will hold the program until the email is sent
server.sendmail(FROM_EMAIL, to_email, msg.as_string())
server.send_message(msg)
server.quit()
logger.info("System: Email sent to: " + to_email[:-6])