test mail sender
This commit is contained in:
+12
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user