Transfer classes

EmailTransfer([subject, to, cc, bcc, …])

Send mail.

EmailTransfer

class EmailTransfer(subject=None, to=None, cc=None, bcc=None, mail_from=None, body=None)[source]

Send mail.

__init__(subject=None, to=None, cc=None, bcc=None, mail_from=None, body=None)[source]

Send an email report of the pipeline.

Parameters
  • subject (str) – A subject to use, supports strftime placeholders.

  • to (str[]) – A list of recipients

  • cc (str[]) – Carbon-copy recipient list

  • bcc (str[]) – Blind copy recipient list

  • mail_from (str) – From: email address

At least one of to, cc or bcc must be set.

This transfer will email a notification to a specified email address. If a file is found from an export, it will be attached to the message.

Arguments:

  • str subject: The subject to use in the email, supports strftime

  • str[] to: Recipient addresses

  • str[] cc: Copy recipient addresses

  • str[] bcc: Blind copy recipients

  • str mail_from: (optional) Set the From: email address