This commit is contained in:
2026-08-27 13:28:26 +02:00
parent cb6627bd3d
commit e727b33838
+22
View File
@@ -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)