Skip to content

Commit

Permalink
uncommented send_email()
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Mar 19, 2024
1 parent 148e6da commit f57f65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_ta_backend/service/export_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def export_data_in_bg(response, download_type, course_name, s3_path):
# send email to admins
subject = "UIUC.chat Data Export Complete for " + course_name
body_text = "The data export for " + course_name + " is complete.\n\nYou can download the file from the following link: \n\n" + s3_url + "\n\nThis link will expire in 48 hours."
# email_status = send_email(subject, body_text, os.environ['EMAIL_SENDER'], admin_emails, bcc_emails)
# print("email_status: ", email_status)
email_status = send_email(subject, body_text, os.environ['EMAIL_SENDER'], admin_emails, bcc_emails)
print("email_status: ", email_status)

return "File uploaded to S3. Email sent to admins."

Expand Down

0 comments on commit f57f65e

Please sign in to comment.