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