From e922b4a935099cc8ecff45fe06762b730a5cd978 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:27:30 +0530 Subject: [PATCH 1/2] fix: final changes to make email app work --- email/1.3.0/src/app.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/email/1.3.0/src/app.py b/email/1.3.0/src/app.py index a233ce09..de58af53 100644 --- a/email/1.3.0/src/app.py +++ b/email/1.3.0/src/app.py @@ -67,9 +67,19 @@ def send_email_shuffle(self, apikey, recipients, subject, body): elif "," in recipients: targets = recipients.split(",") - data = {"targets": targets, "body": body, "subject": subject, "type": "alert", "email_app": True} + data = {"targets": targets, "body": body, "subject": subject, "type": "alert", "email_app": True, "reference_execution": self.current_execution_id} - url = "https://shuffler.io/functions/sendmail" + # url = "https://shuffler.io/functions/sendmail" + + url = "https://7692-2405-201-4019-f142-8124-2465-9b7d-4945.ngrok-free.app/functions/sendmail" + + print("apikey: ", apikey, " authorization: ", self.authorization) + + time.sleep(10) + + if apikey.strip() == "" and self.authorization != "standalone": + apikey = self.authorization + headers = {"Authorization": "Bearer %s" % apikey} return requests.post(url, headers=headers, json=data).text From da431d746e5b26348a0e494a41cc4e7a33c691ce Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Thu, 10 Jul 2025 01:06:10 +0530 Subject: [PATCH 2/2] fix: finalising function --- email/1.3.0/src/app.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/email/1.3.0/src/app.py b/email/1.3.0/src/app.py index de58af53..ebe7702b 100644 --- a/email/1.3.0/src/app.py +++ b/email/1.3.0/src/app.py @@ -69,13 +69,7 @@ def send_email_shuffle(self, apikey, recipients, subject, body): data = {"targets": targets, "body": body, "subject": subject, "type": "alert", "email_app": True, "reference_execution": self.current_execution_id} - # url = "https://shuffler.io/functions/sendmail" - - url = "https://7692-2405-201-4019-f142-8124-2465-9b7d-4945.ngrok-free.app/functions/sendmail" - - print("apikey: ", apikey, " authorization: ", self.authorization) - - time.sleep(10) + url = "https://shuffler.io/functions/sendmail" if apikey.strip() == "" and self.authorization != "standalone": apikey = self.authorization