From f75f5e9eaf62e0385e923ca4901ac46e2a66e64f Mon Sep 17 00:00:00 2001 From: Harsh Sinha Date: Wed, 20 Dec 2023 06:14:32 -0500 Subject: [PATCH] testing mail to multiple recipients --- mrQA/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrQA/utils.py b/mrQA/utils.py index cd925fb..0c5f70c 100644 --- a/mrQA/utils.py +++ b/mrQA/utils.py @@ -1424,9 +1424,9 @@ def send_email(log_filepath, f'{project_code} dt. {today.strftime("%m.%d.%Y")}') msg['From'] = 'mrqa' if project_code in to_emails: - msg['To'] = to_emails[project_code] + msg['To'] = ",".join(to_emails[project_code]) else: - msg['To'] = config['default_email'] + msg['To'] = ",".join(config['default_email']) # Attach report to the email with open(report_path, 'rb') as fp: