test
This commit is contained in:
@@ -3490,6 +3490,28 @@ def admin_delete_all_instances():
|
|||||||
# Leite den Admin danach zurück zu einer sicheren Seite
|
# Leite den Admin danach zurück zu einer sicheren Seite
|
||||||
return redirect(url_for('my_instance_management'))
|
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():
|
def main():
|
||||||
app.run(host="0.0.0.0", port=4999, debug=False)
|
app.run(host="0.0.0.0", port=4999, debug=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user