mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
add Message-ID on mails
This commit is contained in:
parent
1d3cd431eb
commit
9cefc7f701
1 changed files with 1 additions and 0 deletions
|
@ -1301,6 +1301,7 @@ class EMAIL(Notifier):
|
||||||
else:
|
else:
|
||||||
msg = MIMEText(body, 'plain', 'utf-8')
|
msg = MIMEText(body, 'plain', 'utf-8')
|
||||||
|
|
||||||
|
msg['Message-ID'] = email.utils.make_msgid()
|
||||||
msg['Date'] = email.utils.formatdate(localtime=True)
|
msg['Date'] = email.utils.formatdate(localtime=True)
|
||||||
msg['Subject'] = subject
|
msg['Subject'] = subject
|
||||||
msg['From'] = email.utils.formataddr((self.config['from_name'], self.config['from']))
|
msg['From'] = email.utils.formataddr((self.config['from_name'], self.config['from']))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue