From dc974135bf41fef9aea0097ad2326ba606186657 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 27 Jun 2023 16:22:54 -0400 Subject: [PATCH] Improved the original send_email function. Better error checking. Better formatting. --- app/lib_general.py | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/app/lib_general.py b/app/lib_general.py index 8616562..0be2ac8 100644 --- a/app/lib_general.py +++ b/app/lib_general.py @@ -505,15 +505,25 @@ def send_email( return False html_version = """\ - - -
- """+body_html+""" -
- - + + + +"""+body_html+""" + + + """ + # html_version = """\ + # + # + #
+ # """+body_html+""" + #
+ # + # + # """ + if body_text: text_version = body_text else: