From 7b2a6d7bc1503c6e5fc6cb428c2b97ef51e384b6 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Thu, 17 Sep 2026 19:28:24 +0200 Subject: [PATCH] test mail sender --- Web/app.py | 14 +++++++++++++- Web/modules/emailservice/email.py | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Web/app.py b/Web/app.py index 04dd2ba..29e3d45 100755 --- a/Web/app.py +++ b/Web/app.py @@ -13755,4 +13755,16 @@ def upload_csv_batch(): "images_processed": processed_count, "images_deduplicated": dedup_count, "images_failed": error_count - }), 200 \ No newline at end of file + }), 200 + +@app.route('/test_email') +def test_email(): + + #Test endpoint to send a sample email. + #This is for development purposes only. + + try: + send(to_email="maximiliangruendinger@gmail.com", subject="Test Email from Inventarsystem", body="This is a test email sent from the Inventarsystem application.") + return "Test email sent successfully." + except Exception as e: + return f"Failed to send test email: {str(e)}", 500 \ No newline at end of file diff --git a/Web/modules/emailservice/email.py b/Web/modules/emailservice/email.py index 5b12d2c..53322e0 100644 --- a/Web/modules/emailservice/email.py +++ b/Web/modules/emailservice/email.py @@ -17,7 +17,7 @@ def _build_smtp_client(): if True: smtp.starttls() smtp.ehlo() - smtp.login("no-reply@invario-software.de", "#,EATwIn,68") + smtp.login("no-reply@invario-software.de", "eSpage,65,{") return smtp