potiuk commented on issue #21671:
URL: https://github.com/apache/airflow/issues/21671#issuecomment-1045021786


   Thsnks for this one. 
   
   The workaround is to implement own function (below) or downgrade the amazon 
provider to 2.3.0
   
   ```
   def my_send_email(
       to: Union[List[str], str],
       subject: str,
       html_content: str,
       files: Optional[List] = None,
       cc: Optional[Union[List[str], str]] = None,
       bcc: Optional[Union[List[str], str]] = None,
       mime_subtype: str = 'mixed',
       mime_charset: str = 'utf-8',
       conn_id: str = 'aws_default',
       from_email: str = None,
       **kwargs,
   ) -> None:
       """Email backend for SES."""
       hook = SESHook(aws_conn_id=conn_id)
       hook.send_email(
           mail_from=from_email,
           to=to,
           subject=subject,
           html_content=html_content,
           files=files,
           cc=cc,
           bcc=bcc,
           mime_subtype=mime_subtype,
           mime_charset=mime_charset,
       )
   ```


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