s365b.notify.message

Turning an event into an email.

Attributes

Classes

Message

An email ready to send.

Functions

render(event, branding, base_url[, prefix]) → Message

Build the email for an event.

Module Contents

class s365b.notify.message.Message[source]

An email ready to send.

Variables:
  • subject – Subject line.

  • text – Plain-text body.

  • html – HTML body.

subject: str[source]
text: str[source]
html: str[source]
s365b.notify.message.render(event: s365b.db.models.Event, branding: s365b.core.branding.Branding, base_url: str, prefix: str = '') → Message[source]

Build the email for an event.

Parameters:
  • event – The event.

  • branding – Product name and email footer.

  • base_url – Public URL of the web UI, for the link.

  • prefix – Subject prefix; empty means [<product name>].

Returns:

The message.