AE-2364: Implement the alert(mail) for reporting

Review Request #1345 — Created Jan. 30, 2026 and submitted — Latest diff uploaded

apoorva.sn
AMP
amp_4_0
AE-2364
pmurugaiyan, pradeep, shuinvy

Problem

AE-2364: Implement the alert(mail) for reporting

Solution

Have made changes to send mail once the report is generated to the addresses specified in sent_to
Previous review changes also present as it did not get committed properly

Tested that the mail was sent after report got generated

[root@AN admin]# curl 'http://127.0.0.1:8000/report/5/generate' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken:WoOGhHKtWMYmMwOjs9d3mpTIgny4nq6P' \
-b 'csrftoken=WoOGhHKtWMYmMwOjs9d3mpTIgny4nq6P; hive_key=1; django_language=en; csrf_token=WoOGhHKtWMYmMwOjs9d3mpTIgny4nq6P; current_user=array; hive_sess=04955d04-89b2-48b0-98d6-4da6d2e4822e' \
--data-raw '{}' \
--insecure
{"message": "Report generated successfully", "report_id": 5, "log_id": 50, "file_name": "SLB_RS_Statistics_Report_from_2026_01_09_21_37_43_to_2026_01_29_21_37_43.pdf", "file_size": 75453}


    Loading...