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