Airflow Summit 2026 is coming August 31 - September 2 in Austin, TX. Register now to secure your spot!

Send email using AWS SES

Airflow can be configured to send e-mail using AWS SES as the email_backend, so that task callback emails (success, failure, retry) go out through SES instead of SMTP. See Email Configuration for the general Airflow email configuration this page builds on.

Note

If you instead want to send an email as a Dag task, use the SesEmailOperator documented in Amazon Simple Email Service (SES).

Follow the steps below to enable it:

  1. Install the amazon provider as part of your Airflow installation:

    pip install 'apache-airflow[amazon]'
    
  2. Update the [email] section in airflow.cfg:

    [email]
    email_backend = airflow.providers.amazon.aws.utils.emailer.send_email
    email_conn_id = aws_default
    from_email = From email <email@example.com>
    

    Equivalent environment variables look like:

    AIRFLOW__EMAIL__EMAIL_BACKEND=airflow.providers.amazon.aws.utils.emailer.send_email
    AIRFLOW__EMAIL__EMAIL_CONN_ID=aws_default
    AIRFLOW__EMAIL__FROM_EMAIL=email@example.com
    

    from_email is required and must be a sender address verified with SES.

  3. Create a connection called aws_default, or choose a custom connection name and set it in email_conn_id, of type Amazon Web Services. See Managing Connections for how to create a connection.

Was this entry helpful?