Skip to content

Commit

Permalink
correction to sendmail for create_schedule_table
Browse files Browse the repository at this point in the history
  • Loading branch information
william-aaron-CFA committed Aug 22, 2024
1 parent 22a1a6a commit 9cec1c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions other_scripts/create_schedule_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,7 @@ def send_mail(subject, text, address_dict):
else:
message += f"{text}"

cmd = f"echo '{message}' | sendmail {','.join(address_dict['TO'])}"

os.system(cmd)
os.system(f"echo '{message}' | sendmail -t")

#---------------------------------------------------------------------------------------
#-- update_this_week_poc: update this_week_person_in_charge table -
Expand Down

0 comments on commit 9cec1c4

Please sign in to comment.