apache-airflow-providers-smtp
Changelog¶
2.0.0¶
Breaking changes¶
Warning
The argument from_email
is now an optional kwarg in SmtpNotifier
, and the argument to
became the first
positional argument.
Configuring the SmtpNotifier
and SmtpHook
default values via Airflow SMTP configurations is not supported
anymore. You can instead use the SMTP connection configuration to set the default values, where you can use:
the connection extra field
ssl_context
instead of the configurationsmtp_provider.ssl_context
oremail.ssl_context
in the SMTP hook.the connection extra field
from_email
instead of the configurationsmtp.smtp_mail_from
inSmtpNotifier
.the connection extra field
subject_template
instead of the configurationsmtp.templated_email_subject_path
inSmtpNotifier
.the connection extra field
html_content_template
instead of the configurationsmtp.templated_html_content_path
inSmtpNotifier
.
1.9.0¶
Note
This release of provider is only available for Airflow 2.9+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers to Airflow 2.9.0 (#44956)
1.8.1¶
Misc¶
Move bash operator to Standard provider (#42252)
Purge existing SLA implementation (#42285)
Unify DAG schedule args and change default to None (#41453)
1.8.0¶
Note
This release of provider is only available for Airflow 2.8+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers to Airflow 2.8.0 (#41396)
1.7.1¶
Misc¶
Faster 'airflow_version' imports (#39552)
Simplify 'airflow_version' imports (#39497)
1.7.0¶
Note
This release of provider is only available for Airflow 2.7+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers to Airflow 2.7.0 (#39240)
1.6.1¶
Bug Fixes¶
Fix backwards compatibility for SMTP provider (#37701)
Misc¶
Deprecate smtp configs in airflow settings / local_settings (#37711)
1.6.0 (YANKED)¶
Warning
This release has been yanked with a reason: The release had broken backwards compatibility with Airflow 2.8.* release
Features¶
Modify SmtpNotifier to accept template with defaults (#36226)
Bug Fixes¶
Follow BaseHook connection fields method signature in child classes (#36086)
1.5.0¶
Note
This release of provider is only available for Airflow 2.6+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers to Airflow 2.6.0 (#36017)
1.4.1¶
Misc¶
Make 'cc' and 'bcc' templated fields in EmailOperator (#35235)
1.4.0¶
Note
This release of provider is only available for Airflow 2.5+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump min airflow version of providers (#34728)
1.3.2¶
Misc¶
Refactor unneeded jumps in providers (#33833)
Improve modules import in Airflow providers by some of them into a type-checking block (#33754)
1.3.1¶
Bug Fixes¶
Simplify 'X for X in Y' to 'Y' where applicable (#33453)
1.3.0¶
In case of SMTP SSL connection, the default context now uses “default” context
The “default” context is Python’s default_ssl_context
instead of previously used “none”. The
default_ssl_context
provides a balance between security and compatibility but in some cases,
when certificates are old, self-signed or misconfigured, it might not work. This can be configured
by setting “ssl_context” in “smtp_provider” configuration of the provider. If it is not explicitly set,
it will default to “email”, “ssl_context” setting in Airflow.
Setting it to “none” brings back the “none” setting that was used in previous versions of the provider, but it is not recommended due to security reasons ad this setting disables validation of certificates and allows MITM attacks.
You can also override “ssl_context” per-connection by setting “ssl_context” in the connection extra.
Features¶
Add possibility to use 'ssl_context' extra for SMTP and IMAP connections (#33112)
Allows to choose SSL context for SMTP provider (#33075)
1.2.0¶
Note
This release dropped support for Python 3.7
Features¶
Add notifier for Smtp (#31359)
1.1.0¶
Note
This release of provider is only available for Airflow 2.4+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers (#30917)
1.0.1¶
Bug Fixes¶
'EmailOperator': fix wrong assignment of 'from_email' (#30524)
Accept None for 'EmailOperator.from_email' to load it from smtp connection (#30533)
1.0.0¶
Initial version of the provider.