From bfe15ca776dbcdc4375b8c923d52f58a5ba76850 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 7 Jun 2023 10:32:15 +0100 Subject: [PATCH] Fix mailer date header --- src/mailer.py | 4 ++-- src/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mailer.py b/src/mailer.py index e63f0b1..47c9e73 100644 --- a/src/mailer.py +++ b/src/mailer.py @@ -54,12 +54,12 @@ def sendMail(msg_body :str, retry): message['From'] = smtpFrom message['To'] = "server-notification-receipt@fjla.uk" message['Subject'] = "OwlBoard - dbmanager Logs" - message['Data'] = formatdate(localtime = True) + message['Date'] = formatdate(localtime = True) filename = "cif_data" message.attach(MIMEText(msg_body, "plain")) if os.path.exists(filename): with open(filename, "rb") as attachment: - part = MIMEBase("application", "octet-stream") + part = MIMEBase("text", "plain") part.set_payload(attachment.read()) encoders.encode_base64(part) part.add_header( diff --git a/src/main.py b/src/main.py index 300d78f..654f322 100644 --- a/src/main.py +++ b/src/main.py @@ -14,7 +14,7 @@ # program. If not, see # https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE -version = "2023.6.8" +version = "2023.6.9" print(f"main.py: Initialising db-manager v{version}") #Third Party Imports