Skip to content

incendium.net.send_html_email

Cesar Roman edited this page Sep 23, 2020 · 9 revisions

Description

Sends an email in HTML format.

Syntax

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.

Code Examples

# Imports.
from incendium import util

util.send_html_email(
    'This is the subject',
    body, # HTML message.
    to=['john@mycompany.com', 'bob@mycompany.com']
)
Clone this wiki locally