mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
SMTP
This commit is contained in:
0
front/php/templates/language/tr_tr.json
Normal file → Executable file
0
front/php/templates/language/tr_tr.json
Normal file → Executable file
@@ -123,12 +123,16 @@ def send(pHTML, pText):
|
|||||||
|
|
||||||
# handle multiple emails
|
# handle multiple emails
|
||||||
if ',' in to_email:
|
if ',' in to_email:
|
||||||
emails = [e.strip() for e in to_email.split(',')]
|
emails = to_email.split(',')
|
||||||
else:
|
else:
|
||||||
emails.append(to_email.strip())
|
emails.append(to_email)
|
||||||
|
|
||||||
|
mylog('debug', [f'[{pluginName}] Sending emails to {emails}'])
|
||||||
|
|
||||||
for mail_addr in emails:
|
for mail_addr in emails:
|
||||||
|
|
||||||
|
mail_addr = mail_addr.strip()
|
||||||
|
|
||||||
# Compose email
|
# Compose email
|
||||||
msg = MIMEMultipart('alternative')
|
msg = MIMEMultipart('alternative')
|
||||||
msg['Subject'] = subject
|
msg['Subject'] = subject
|
||||||
|
|||||||
Reference in New Issue
Block a user