Email date

Fixes #2703
This commit is contained in:
Ade
2018-04-14 13:59:18 +12:00
parent eeed89811b
commit 0d3be4866f

View File

@@ -941,6 +941,7 @@ class Email(object):
message['From'] = email.utils.formataddr(
('Headphones', headphones.CONFIG.EMAIL_FROM))
message['To'] = headphones.CONFIG.EMAIL_TO
message['Date'] = email.utils.formatdate(localtime=True)
try:
if headphones.CONFIG.EMAIL_SSL: