armandmasseaugit opened a new pull request, #53899:
URL: https://github.com/apache/airflow/pull/53899

   ### Overview
   
   This PR refactors the `send_mime_email` function in `airflow/utils/email.py` 
to improve SMTP connection handling by leveraging Airflow's connection system 
more cleanly. It also updates the function’s docstring for better clarity.
   
   ### Changes
   
   - Improved support for extracting SMTP parameters (host, port, TLS, login, 
password) from Airflow connections.
   - Ensured fallback to `conf.get` remains consistent.
   - Updated docstring to document function behavior and parameters properly.
   
   ### Motivation
   
   This change improves the reliability and configurability of email sending in 
Airflow, particularly in environments that rely on Airflow-managed connections 
for SMTP configuration. It also reduces confusion for developers by clarifying 
the function's behavior.
   
   ### Related issues
   
   None
   
   ---
   


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