Skip to content

Commit

Permalink
testing mail to multiple recipients
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaharsh committed Dec 20, 2023
1 parent 08df7b6 commit f75f5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrQA/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f75f5e9

Please sign in to comment.