mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-21 00:26:16 -04:00
SMTP
This commit is contained in:
1 parent
984bc58cf2
commit
87eda72a62
2 files changed
+6
-2
No files matched your search
Regular → Executable
File mode changed.
@@ -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
|
||||
|
||||
Reference in new issue
Block a user