Source code for hal.internet.email.utils
# -*- coding: utf-8 -*-
"""Email creator utils """
[docs]def get_email_content(file_path):
"""Email content in file
:param file_path: Path to file with email text
:return: Email text (html formatted)
"""
with open(file_path, "r") as in_file:
text = str(in_file.read())
return text.replace("\n\n", "<br>")