DonHaul opened a new issue, #77783:
URL: https://github.com/apache/airflow/issues/77783

   ### Under which category would you file this issue?
   
   Providers
   
   ### Apache Airflow version
   
   3.4.0
   
   ### What happened and how to reproduce it?
   
   We've upgraded to 3.4. 
   
   We've converted our imports from `airflow.utils.email` to use  
`airflow.providers.smtp.utils.emailer` as specified in
   
https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-utils-email-is-deprecated-in-favor-of-the-smtp-provider-75414
   
   However we are still getting this deprecation warning
   
   ```
   [2026-11-20 14:46:03] WARNING - The `airflow.utils.email.send_email_smtp` 
attribute is deprecated. Please use 
`'airflow.providers.smtp.utils.emailer.send_email_smtp'`. The provider looks up 
the SMTP Connection 
   ```
   
   this is because `airflow.providers.smtp.utils.emailer.send_email` uses the 
EMAIL BACKEND - 
[code](https://github.com/apache/airflow/blob/main/providers/smtp/src/airflow/providers/smtp/utils/emailer.py#L73)
 which defaults to `airflow.utils.email.send_email_smtp` as requested by the 
[note](https://airflow.apache.org/docs/apache-airflow/stable/howto/email-config.html)
   
   > keep email_backend set to airflow.utils.email.send_email_smtp.
   
   However `email.py`  
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/utils/email.py
 has been deprecated.
   
   So althought this 
[note](https://airflow.apache.org/docs/apache-airflow/stable/howto/email-config.html)
 tells us keep email_backend set to airflow.utils.email.send_email_smtp, but 
that causes a deprecation warning to appears. is this intended or am i missing 
something?
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### Operating System
   
   _No response_
   
   ### Deployment
   
   None
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   _No response_
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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