test mail sender
This commit is contained in:
+13
-1
@@ -13755,4 +13755,16 @@ def upload_csv_batch():
|
|||||||
"images_processed": processed_count,
|
"images_processed": processed_count,
|
||||||
"images_deduplicated": dedup_count,
|
"images_deduplicated": dedup_count,
|
||||||
"images_failed": error_count
|
"images_failed": error_count
|
||||||
}), 200
|
}), 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:
|
if True:
|
||||||
smtp.starttls()
|
smtp.starttls()
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
smtp.login("no-reply@invario-software.de", "#,EATwIn,68")
|
smtp.login("no-reply@invario-software.de", "eSpage,65,{")
|
||||||
return smtp
|
return smtp
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user