From dbed7a22d53cbb97affa0a91e586e117276cbe59 Mon Sep 17 00:00:00 2001 From: Andreas Sauerwein-Schlosser Date: Tue, 25 Jun 2024 23:16:54 +0200 Subject: [PATCH] force smtp port to integer --- docker.env.example | 2 +- download_v2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker.env.example b/docker.env.example index 08da41b..9c7d4c7 100644 --- a/docker.env.example +++ b/docker.env.example @@ -2,6 +2,6 @@ ENABLE_EMAIL_EXPORT=False EMAIL_FROM='tesla-invoices@acme.org' EMAIL_TO='recipient@example.com' EMAIL_SERVER='mail.example.com' -EMAIL_SERVER_PORT='587' +EMAIL_SERVER_PORT=587 EMAIL_USER='emailuser@example.com' EMAIL_PASS='somesecretpassword!' \ No newline at end of file diff --git a/download_v2.py b/download_v2.py index b30946f..f60a806 100755 --- a/download_v2.py +++ b/download_v2.py @@ -64,7 +64,7 @@ EMAIL_FROM = os.environ.get("EMAIL_FROM", "") EMAIL_TO = os.environ.get("EMAIL_TO", "") EMAIL_SERVER = os.environ.get("EMAIL_SERVER", "") - EMAIL_SERVER_PORT = os.environ.get("EMAIL_SERVER_PORT", "587") + EMAIL_SERVER_PORT = int(os.environ.get("EMAIL_SERVER_PORT", "587")) EMAIL_USER = os.environ.get("EMAIL_USER", "") EMAIL_PASS = os.environ.get("EMAIL_PASS", "")