airflow.operators.email
¶
Module Contents¶
Classes¶
Sends an email. |
- class airflow.operators.email.EmailOperator(*, to, subject, html_content, files=None, cc=None, bcc=None, mime_subtype='mixed', mime_charset='utf-8', conn_id=None, custom_headers=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Sends an email.
- Parameters
to (Union[List[str], str]) – list of emails to send the email to. (templated)
subject (str) – subject line for the email. (templated)
html_content (str) – content of the email, html markup is allowed. (templated)
files (Optional[List]) – file names to attach in email (templated)
cc (Optional[Union[List[str], str]]) – list of recipients to be added in CC field
bcc (Optional[Union[List[str], str]]) – list of recipients to be added in BCC field
mime_subtype (str) – MIME sub content type
mime_charset (str) – character set parameter added to the Content-Type header.
custom_headers (Optional[Dict[str, Any]]) – additional headers to add to the MIME message.