uranusjr commented on code in PR #28634:
URL: https://github.com/apache/airflow/pull/28634#discussion_r1058742434
##########
airflow/utils/email.py:
##########
@@ -47,8 +48,26 @@ def send_email(
conn_id: str | None = None,
custom_headers: dict[str, Any] | None = None,
**kwargs,
-):
- """Send email using backend specified in EMAIL_BACKEND."""
+) -> None:
+ """
+ Send an email using the backend specified in the `EMAIL_BACKEND`
configuration option.
+
+ :param to: A list or iterable of email addresses to send the email to.
+ :param subject: The subject of the email.
+ :param html_content: The content of the email in HTML format.
+ :param files: A list of paths to files to attach to the email.
+ :param dryrun: If `True`, the email will not actually be sent. Default:
`False`.
+ :param cc: A string or iterable of strings containing email addresses to
send a copy of the email to.
+ :param bcc: A string or iterable of strings containing email addresses to
send a
+ blind carbon copy of the email to.
+ :param mime_subtype: The subtype of the MIME message. Default: "mixed".
+ :param mime_charset: The charset of the email. Default: "utf-8".
+ :param conn_id: The connection ID to use for the backend. If not provided,
the default connection
+ specified in the `EMAIL_CONN_ID` configuration option will be used.
Review Comment:
```suggestion
specified in the ``EMAIL_CONN_ID`` configuration option will be used.
```
--
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]