Nazarii opened a new issue #19594:
URL: https://github.com/apache/airflow/issues/19594


   ### Description
   
   Modify the SendGrid to use `from_email` from the 
`AIRFLOW__SMTP__SMTP_MAIL_FROM` section.
   
   ### Use case/motivation
   
   When we use the `EmailOperator` we can not specify the `email_from` param.
   When using the `email_backend = 
airflow.providers.sendgrid.utils.emailer.send_email` it is impossible to send 
the email on the MWAA since SendGrid policy requires to specify the sender 
email address. Sender email address can be taken from the global var 
`SENDGRID_MAIL_FROM` which is impossible to set in the MWAA. We need to use 
global `AIRFLOW__SMTP__SMTP_MAIL_FROM` section as the last chance to determine 
the sender email.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] 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