From a2d089bce4be9153b90c91e6f0e78693cc220829 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 15 May 2026 11:29:16 +0200 Subject: [PATCH] Fix: SMTP_SUPPORT_PASS Fallback in mailer, scaninput Logging --- backend/mailer.py | 2 +- backend/routes/invoices.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/mailer.py b/backend/mailer.py index 03d9228..f81fb33 100644 --- a/backend/mailer.py +++ b/backend/mailer.py @@ -26,7 +26,7 @@ BREVO_API_URL = "https://api.brevo.com/v3/smtp/email" SMTP_HOST = os.getenv("SMTP_HOST", "") SMTP_PORT = int(os.getenv("SMTP_PORT", "587")) SMTP_USER = os.getenv("SMTP_USER", "") -SMTP_PASS = os.getenv("SMTP_PASS", "") +SMTP_PASS = os.getenv("SMTP_PASS", "") or os.getenv("SMTP_SUPPORT_PASS", "") SMTP_FROM = os.getenv("SMTP_FROM", "Ban Yaro ") APP_URL = os.getenv("APP_URL", "https://banyaro.app") diff --git a/backend/routes/invoices.py b/backend/routes/invoices.py index dd71609..e330a12 100644 --- a/backend/routes/invoices.py +++ b/backend/routes/invoices.py @@ -308,6 +308,7 @@ async def _save_to_paperless(pdf_bytes: bytes, invoice_number: str, filename: st path = os.path.join(scaninput, filename) with open(path, "wb") as f: f.write(pdf_bytes) + logger.info(f"PDF gespeichert: {path} ({len(pdf_bytes)} Bytes)") paperless_url = os.getenv("PAPERLESS_URL", "") paperless_token = os.getenv("PAPERLESS_TOKEN", "")