EmailOperator

Apache Airflow Certified

Sends an email.

View on GitHub

Last Updated: Nov. 10, 2022

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

toRequiredlist of emails to send the email to. (templated)
subjectRequiredsubject line for the email. (templated)
html_contentRequiredcontent of the email, html markup is allowed. (templated)
filesfile names to attach in email (templated)
cclist of recipients to be added in CC field
bcclist of recipients to be added in BCC field
mime_subtypeMIME sub content type
mime_charsetcharacter set parameter added to the Content-Type header.
custom_headersadditional headers to add to the MIME message.

Documentation

Sends an email.

Was this page helpful?