github-actions[bot] opened a new pull request, #75704: URL: https://github.com/apache/airflow/pull/75704
* Add core email utilities to the SMTP provider Copy airflow.utils.email into airflow.providers.smtp.utils.emailer so that core can later deprecate its email module and delegate to the provider, once a provider release containing it is available. The module is a copy of the core module. The only code changes are the imports, which go through common.compat, and the Connection lookup, which uses BaseHook.get_connection as other providers do instead of importing airflow.models. SMTP settings still come from the [smtp] configuration section and only the login and password from the Connection. Routing these calls through SmtpHook instead would change behavior for existing setups, because the hook reads all settings from the Connection and retries differently. Tests are copied from core, with additional edge cases. The module is registered as an email backend. * Describe the SMTP emailer without referring to core The emailer documentation now explains what the module does and how it is configured, without mentioning where the code came from. (cherry picked from commit 31994976b54fa98bba8619dc97ec6d32db67ce92) Co-authored-by: Shivam Rastogi <[email protected]> -- 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]
