Libum opened a new issue #9687: URL: https://github.com/apache/airflow/issues/9687
**Apache Airflow version**: 1.10.10 **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): not relevant **Environment**: not relevant - **Cloud provider or hardware configuration**: not relevant - **OS** (e.g. from /etc/os-release): not relevant - **Kernel** (e.g. `uname -a`): not relevant - **Install tools**: not relevant - **Others**: not relevant **What happened**: Airflow is failing to send default task failure email if message contains non-ascii characters. Relevant part from task logs: > Failed to send email to: [email protected] 'ascii' codec can't encode characters in position 34-35: ordinal not in range(128) **What you expected to happen**: Email to be sent successfully. Issue is most likely caused by invalid default `mime_charset` in send_email utility in Airflow 1.10.10: https://github.com/apache/airflow/blob/317b0412383ccda571fbef568c9eabd70ab8e666/airflow/utils/email.py#L67 It is set to 'us-ascii', but I would expect 'utf-8' based on UPDATING.md and current state of master branch: https://github.com/apache/airflow/blob/v1-10-stable/UPDATING.md#setting-utf-8-as-default-mime_charset-in-email-utils https://github.com/apache/airflow/blob/fddc5721c9b5015cd600eec85496c7fc4bd513a7/airflow/utils/email.py#L52 As result emails are not sent, if they contain non-ascii chars. **How to reproduce it**: Run PythonOperator task which is raising Exception with non-ascii message. **Anything else we need to know**: ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
