From c6958c7c691fd2dfa6e1e2032fd77fe09ffc3698 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 9 Dec 2024 18:55:08 -0800 Subject: [PATCH] Update smtp.py --- modules/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/smtp.py b/modules/smtp.py index 1cb09b0..bf41187 100644 --- a/modules/smtp.py +++ b/modules/smtp.py @@ -40,7 +40,7 @@ def send_email(to_email, message, nodeID=0): # Create message msg = MIMEMultipart() msg['From'] = FROM_EMAIL - msg['To'] = to_email + msg['To'] = to_email.strip() msg['Subject'] = EMAIL_SUBJECT msg.attach(MIMEText(message, 'plain'))