-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.net.send_html_email
Cesar Roman edited this page Sep 23, 2020
·
9 revisions
Sends an email in HTML format.
send_html_email(subject, body, to, priority)
Args:
- subject (str): The subject line for the email.
- body (str): The body text of the email.
- to (list[str]): A list of email addresses to send to.
- priority (str): Priority of the message, from "1" to "5", with "1" being highest priority. Defaults to "3" (normal) priority. Optional.
# Imports.
from incendium import util
util.send_html_email(
'This is the subject',
body, # HTML message.
to=['john@mycompany.com', 'bob@mycompany.com']
)