Skip to content

incendium.net.send_html_email

César Román edited this page Apr 30, 2024 · 9 revisions

Description

Send an email in HTML format.

Syntax

incendium.net.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

from incendium import net

net.send_html_email(
    "This is the subject",
    "Body",  # HTML message.
    to=["[email protected]", "[email protected]"],
)
Clone this wiki locally