s365b.notify.message ==================== .. py:module:: s365b.notify.message .. autoapi-nested-parse:: Turning an event into an email. Attributes ---------- .. autoapisummary:: s365b.notify.message.LINKS Classes ------- .. autoapisummary:: s365b.notify.message.Message Functions --------- .. autoapisummary:: s365b.notify.message.render Module Contents --------------- .. py:data:: LINKS .. py:class:: Message An email ready to send. :ivar subject: Subject line. :ivar text: Plain-text body. :ivar html: HTML body. .. py:attribute:: subject :type: str .. py:attribute:: text :type: str .. py:attribute:: html :type: str .. py:function:: render(event: s365b.db.models.Event, branding: s365b.core.branding.Branding, base_url: str, prefix: str = '') -> Message Build the email for an event. :param event: The event. :param branding: Product name and email footer. :param base_url: Public URL of the web UI, for the link. :param prefix: Subject prefix; empty means ``[]``. :returns: The message.