| :mod:`airflow.operators.email_operator` |
| ======================================= |
| |
| .. py:module:: airflow.operators.email_operator |
| |
| |
| Module Contents |
| --------------- |
| |
| .. py:class:: EmailOperator(to, subject, html_content, files=None, cc=None, bcc=None, mime_subtype='mixed', mime_charset='us_ascii', *args, **kwargs) |
| |
| Bases: :class:`airflow.models.BaseOperator` |
| |
| Sends an email. |
| |
| :param to: list of emails to send the email to. (templated) |
| :type to: list or string (comma or semicolon delimited) |
| :param subject: subject line for the email. (templated) |
| :type subject: str |
| :param html_content: content of the email, html markup |
| is allowed. (templated) |
| :type html_content: str |
| :param files: file names to attach in email |
| :type files: list |
| :param cc: list of recipients to be added in CC field |
| :type cc: list or string (comma or semicolon delimited) |
| :param bcc: list of recipients to be added in BCC field |
| :type bcc: list or string (comma or semicolon delimited) |
| :param mime_subtype: MIME sub content type |
| :type mime_subtype: str |
| :param mime_charset: character set parameter added to the Content-Type |
| header. |
| :type mime_charset: str |
| |
| .. attribute:: template_fields |
| :annotation: = ['to', 'subject', 'html_content'] |
| |
| |
| |
| .. attribute:: template_ext |
| :annotation: = ['.html'] |
| |
| |
| |
| .. attribute:: ui_color |
| :annotation: = #e6faf9 |
| |
| |
| |
| |
| .. method:: execute(self, context) |
| |
| |
| |
| |