Skip to content

incendium.net.send_high_priority_email

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

Description

Sends a High Priority email. Internally it calls incendium.net.send_html_email with the priority parameter set to "1".

Syntax

send_high_priority_email(subject, body, to)

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.

Code Examples

# Imports.
from incendium import util

def send_important_email():
    util.send_high_priority_email(
        'This is the subject',
        body, # HTML message.
        to=['john@mycompany.com', 'bob@mycompany.com']
    )

system.util.invokeAsynchronous(send_important_email)
Clone this wiki locally