Fix: SMTP_SUPPORT_PASS Fallback in mailer, scaninput Logging

This commit is contained in:
rene 2026-05-15 11:29:16 +02:00
parent 41a4808ad5
commit a2d089bce4
2 changed files with 2 additions and 1 deletions

View file

@ -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 <noreply@banyaro.app>")
APP_URL = os.getenv("APP_URL", "https://banyaro.app")

View file

@ -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", "")