Improved the original send_email function. Better error checking. Better formatting.

This commit is contained in:
Scott Idem
2023-06-27 16:22:54 -04:00
parent 2bbc219df3
commit dc974135bf

View File

@@ -505,15 +505,25 @@ def send_email(
return False
html_version = """\
<html>
<body>
<div>
"""+body_html+"""
</div>
</body>
</html>
<html>
<body>
"""+body_html+"""
</body>
</html>
"""
# html_version = """\
# <html>
# <body>
# <div>
# """+body_html+"""
# </div>
# </body>
# </html>
# """
if body_text:
text_version = body_text
else: