From e727b33838bca5af7dca391f0e7464f1cb1e35eb Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Thu, 27 Aug 2026 13:28:26 +0200 Subject: [PATCH] test --- Website/main.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Website/main.py b/Website/main.py index 3aff9d1..f28de17 100644 --- a/Website/main.py +++ b/Website/main.py @@ -3490,6 +3490,28 @@ def admin_delete_all_instances(): # Leite den Admin danach zurück zu einer sicheren Seite return redirect(url_for('my_instance_management')) +@app.route('/test_email') +def test_email(): + """ + Test endpoint to send a sample email. + This is for development purposes only. + """ + try: + send_accreditation_email( + recipient="maximilian.gruendinger@invario-software.de", + domain="testdomain.invario-software.de", + username="testuser", + password="TestPassword123", + school_name="Test School", + address="Test Address 123, 12345 Test City", + price="0", + date="Test City, 01.01.2023", + selected_package="starter" + ) + return "Test email sent successfully." + except Exception as e: + return f"Failed to send test email: {str(e)}", 500 + def main(): app.run(host="0.0.0.0", port=4999, debug=False)