Skip to content

Instantly share code, notes, and snippets.

@ohld
Created April 14, 2021 10:51
Show Gist options
  • Select an option

  • Save ohld/168fb62532d3a3a1ae66c7463a0d6cbe to your computer and use it in GitHub Desktop.

Select an option

Save ohld/168fb62532d3a3a1ae66c7463a0d6cbe to your computer and use it in GitHub Desktop.
Airflow env vars list to setup Email notifications with Gmail SMTP
AIRFLOW__SMTP__SMTP_HOST=smtp.gmail.com
AIRFLOW__SMTP__SMTP_SSL=true
AIRFLOW__SMTP__SMTP_PORT=465
AIRFLOW__SMTP__SMTP_USER=
AIRFLOW__SMTP__SMTP_PASSWORD=
AIRFLOW__SMTP__SMTP_MAIL_FROM=
# more env vars: https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#smtp
@ohld
Copy link
Copy Markdown
Author

ohld commented Apr 14, 2021

@bewivobsrea
Copy link
Copy Markdown

bewivobsrea commented May 12, 2026

This is a simple .env configuration file for setting up Gmail SMTP email notifications in Apache Airflow. You set your Gmail credentials and, just like ufasnake streamlines its workflow, Airflow handles sending alert emails through Google's SMTP server on port 465 with SSL enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment