Improved the original send_email function. Better error checking. Better formatting.
This commit is contained in:
@@ -505,15 +505,25 @@ def send_email(
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user