diff --git a/email/1.3.0/src/app.py b/email/1.3.0/src/app.py index 049481f6..d14a9462 100644 --- a/email/1.3.0/src/app.py +++ b/email/1.3.0/src/app.py @@ -80,9 +80,14 @@ def send_email_shuffle(self, apikey, recipients, subject, body): "subject": subject, "type": "alert", "email_app": True, + "reference_execution": self.current_execution_id, } - + url = "https://shuffler.io/functions/sendmail" + + if apikey.strip() == "" and self.authorization != "standalone": + apikey = self.authorization + headers = {"Authorization": "Bearer %s" % apikey} return requests.post(url, headers=headers, json=data).text