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

@@ -507,13 +507,23 @@ def send_email(
html_version = """\ html_version = """\
<html> <html>
<body> <body>
<div>
"""+body_html+""" """+body_html+"""
</div>
</body> </body>
</html> </html>
""" """
# html_version = """\
# <html>
# <body>
# <div>
# """+body_html+"""
# </div>
# </body>
# </html>
# """
if body_text: if body_text:
text_version = body_text text_version = body_text
else: else: