From 87eda72a62058641f52f41b14118e24da25d03b1 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Thu, 8 May 2025 08:30:57 +1000 Subject: [PATCH] SMTP --- front/php/templates/language/tr_tr.json | 0 front/plugins/_publisher_email/email_smtp.py | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 front/php/templates/language/tr_tr.json diff --git a/front/php/templates/language/tr_tr.json b/front/php/templates/language/tr_tr.json old mode 100644 new mode 100755 diff --git a/front/plugins/_publisher_email/email_smtp.py b/front/plugins/_publisher_email/email_smtp.py index a55207e7..acd6b61d 100755 --- a/front/plugins/_publisher_email/email_smtp.py +++ b/front/plugins/_publisher_email/email_smtp.py @@ -123,12 +123,16 @@ def send(pHTML, pText): # handle multiple emails if ',' in to_email: - emails = [e.strip() for e in to_email.split(',')] + emails = to_email.split(',') else: - emails.append(to_email.strip()) + emails.append(to_email) + + mylog('debug', [f'[{pluginName}] Sending emails to {emails}']) for mail_addr in emails: + mail_addr = mail_addr.strip() + # Compose email msg = MIMEMultipart('alternative') msg['Subject'] = subject