EmailOperator

Apache Airflow Certified

Sends an email.

View Source

Last Updated: May. 7, 2021

Access Instructions

Install the Apache Airflow provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

tolist or string (comma or semicolon delimited)list of emails to send the email to. (templated)
subjectstrsubject line for the email. (templated)
html_contentstrcontent of the email, html markup is allowed. (templated)
fileslistfile names to attach in email (templated)
cclist or string (comma or semicolon delimited)list of recipients to be added in CC field
bcclist or string (comma or semicolon delimited)list of recipients to be added in BCC field
mime_subtypestrMIME sub content type
mime_charsetstrcharacter set parameter added to the Content-Type header.

Documentation

Sends an email.

Example DAGs

Was this page helpful?