Bladeren bron

fix: update SMTP_FROM and cleanup contact debug

unknown 2 dagen geleden
bovenliggende
commit
b51faea98c
2 gewijzigde bestanden met toevoegingen van 3 en 5 verwijderingen
  1. 1 1
      backend/config.py
  2. 2 4
      backend/routers/contact.py

+ 1 - 1
backend/config.py

@@ -52,6 +52,6 @@ SMTP_HOST = os.getenv("SMTP_HOST", "localhost")
 SMTP_PORT = int(os.getenv("SMTP_PORT", "25"))
 SMTP_USER = os.getenv("SMTP_USER", "")
 SMTP_PASS = os.getenv("SMTP_PASS", "")
-SMTP_FROM = os.getenv("SMTP_FROM", "noreply@radionica3d.me")
+SMTP_FROM = os.getenv("SMTP_FROM", "hello@radionica3d.me")
 # Frontend URL for links in emails
 FRONTEND_URL = os.getenv("FRONTEND_URL", "https://radionica3d.me")

+ 2 - 4
backend/routers/contact.py

@@ -48,7 +48,5 @@ async def submit_contact_form(
         return {"message": "Your message has been sent successfully."}
         
     except Exception as e:
-        import traceback
-        print(f"CRITICAL Contact form error: {e}")
-        traceback.print_exc()
-        raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
+        print(f"Contact form error: {e}")
+        raise HTTPException(status_code=500, detail="Internal server error")