feat(alert/report): Added optional CC and BCC fields for email notifi… (#29088)

Co-authored-by: Sivarajan Narayanan <sivarajannarayanan@Sivarajans-MacBook-Pro.local>
Co-authored-by: Sivarajan Narayanan <narayanan_sivarajan@apple.com>
This commit is contained in:
nsivarajan
2024-07-22 23:03:47 +05:30
committed by GitHub
parent 2a9a1d3194
commit 27dde2a811
11 changed files with 364 additions and 36 deletions

View File

@@ -711,7 +711,7 @@ def send_email_smtp( # pylint: disable=invalid-name,too-many-arguments,too-many
recipients = smtp_mail_to
if cc:
smtp_mail_cc = get_email_address_list(cc)
msg["CC"] = ", ".join(smtp_mail_cc)
msg["Cc"] = ", ".join(smtp_mail_cc)
recipients = recipients + smtp_mail_cc
smtp_mail_bcc = []