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
|
||||
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user