You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/11 00:58:33 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #28845: Email Config docs more explicit env var examples

potiuk commented on code in PR #28845:
URL: https://github.com/apache/airflow/pull/28845#discussion_r1066481456


##########
docs/apache-airflow/howto/email-config.rst:
##########
@@ -28,8 +28,28 @@ in the ``[email]`` section.
   email_backend = airflow.utils.email.send_email_smtp
   subject_template = /path/to/my_subject_template_file
   html_content_template = /path/to/my_html_content_template_file
+  
+Equivalent environment variables looks like
+
+.. code-block::
+
+  AIRFLOW__EMAIL__EMAIL_BACKEND=airflow.utils.email.send_email_smtp
+  AIRFLOW__EMAIL__SUBJECT_TEMPLATE=/path/to/my_subject_template_file
+  AIRFLOW__EMAIL__HTML_CONTENT_TEMPLATE=/path/to/my_html_content_template_file
+
+You can configure sender's email address by setting ``from_email`` in the ``[email]`` section like
+
+.. code-block:: ini
+
+  [email]
+  from_email = From email <em...@example.com>
+
+Equivalent environment variables looks like
+
+.. code-block::
 
-You can configure sender's email address by setting ``from_email`` in the ``[email]`` section.
+  AIRFLOW__EMAIL__FROM_EMAIL=From email <em...@example.com>

Review Comment:
   ```suggestion
     AIRFLOW__EMAIL__FROM_EMAIL="From email <em...@example.com>"
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org