test mail sender

This commit is contained in:
2026-09-17 19:28:24 +02:00
parent 027cef257d
commit 7b2a6d7bc1
2 changed files with 14 additions and 2 deletions
+12
View File
@@ -13756,3 +13756,15 @@ def upload_csv_batch():
"images_deduplicated": dedup_count,
"images_failed": error_count
}), 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
+1 -1
View File
@@ -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