potiuk commented on code in PR #37711:
URL: https://github.com/apache/airflow/pull/37711#discussion_r1503258455


##########
airflow/settings.py:
##########
@@ -503,6 +503,15 @@ def import_local_settings():
             setattr(airflow_local_settings, "task_policy", 
airflow_local_settings.policy)
             names.remove("policy")
 
+        if "SMTP_DEFAULT_TEMPLATED_SUBJECT" in names or 
"SMTP_DEFAULT_TEMPLATED_HTML_CONTENT_PATH" in names:
+            warnings.warn(
+                "Configuring non-default `SMTP_DEFAULT_TEMPLATED_SUBJECT` and "
+                "`SMTP_DEFAULT_TEMPLATED_HTML_CONTENT_PATH` is deprecated. 
Please upgrade to "
+                "the new version of the SMTP provider and use provider 
configurations instead.",
+                AirflowProviderDeprecationWarning,
+                stacklevel=2,
+            )
+

Review Comment:
   Yes. We should IMHO yank 1.6.0 and forget about those old settings.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to