Skip to content

Commit 3eb035b

Browse files
authored
Merge pull request #431 from Shuffle/0x0elliot/email-app-cloud-fix
fix: final changes to make email app work
2 parents 14a3205 + 74e9038 commit 3eb035b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

email/1.3.0/src/app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,14 @@ def send_email_shuffle(self, apikey, recipients, subject, body):
8080
"subject": subject,
8181
"type": "alert",
8282
"email_app": True,
83+
"reference_execution": self.current_execution_id,
8384
}
84-
85+
8586
url = "https://shuffler.io/functions/sendmail"
87+
88+
if apikey.strip() == "" and self.authorization != "standalone":
89+
apikey = self.authorization
90+
8691
headers = {"Authorization": "Bearer %s" % apikey}
8792
return requests.post(url, headers=headers, json=data).text
8893

0 commit comments

Comments
 (0)