From f57f65e0387cc43ef537802d6555f726bea1f1d3 Mon Sep 17 00:00:00 2001 From: star-nox Date: Tue, 19 Mar 2024 16:44:46 -0500 Subject: [PATCH] uncommented send_email() --- ai_ta_backend/service/export_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai_ta_backend/service/export_service.py b/ai_ta_backend/service/export_service.py index dde6b206..3e4925af 100644 --- a/ai_ta_backend/service/export_service.py +++ b/ai_ta_backend/service/export_service.py @@ -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."