beat.web.utils.mail module

Email related helper

beat.web.utils.mail.send_email(subject_template, message_template, context, recipients, sender='BEAT Development Platform <beat.support@idiap.ch>')[source]

Send email based on the given templates and context information to the list of recipients using the sender address

Parameters:
  • subject_template (str) – Path to subject template
  • message_template (str) – Path the message template
  • context (dict) – context data for the renderer
  • recipients (list) – email address list of the email receivers
  • sender (str) – email address of the sender
beat.web.utils.mail.build_elements(subject_template, message_template, context)[source]

Build email elements to send

Parameters:
  • subject_template (str) – Path to subject template
  • message_template (str) – Path the message template
  • context (dict) – context data for the renderer