From b3e87d7de810b30ce54034828d4e7d2e98ad446f Mon Sep 17 00:00:00 2001
From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com>
Date: Wed, 10 Jan 2024 01:55:36 +0530
Subject: [PATCH] Formatted email as per design
---
app/config/locale/templates/email-webhook.tpl | 234 ++++++++++++++++++
app/config/locale/translations/en.json | 8 +-
docker-compose.yml | 2 +
src/Appwrite/Platform/Workers/Webhooks.php | 18 +-
4 files changed, 249 insertions(+), 13 deletions(-)
create mode 100644 app/config/locale/templates/email-webhook.tpl
diff --git a/app/config/locale/templates/email-webhook.tpl b/app/config/locale/templates/email-webhook.tpl
new file mode 100644
index 0000000000..be877e3577
--- /dev/null
+++ b/app/config/locale/templates/email-webhook.tpl
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ © 2023 Appwrite | 251 Little Falls Drive, Wilmington 19808,
+ Delaware, United States
+
+
+
+
\ No newline at end of file
diff --git a/app/config/locale/translations/en.json b/app/config/locale/translations/en.json
index 59df64aba5..3ff6665b22 100644
--- a/app/config/locale/translations/en.json
+++ b/app/config/locale/translations/en.json
@@ -33,12 +33,8 @@
"emails.certificate.footer": "Your previous certificate will be valid for 30 days since the first failure. We highly recommend investigating this case, otherwise your domain will end up without a valid SSL communication.",
"emails.certificate.thanks": "Thanks",
"emails.certificate.signature": "{{project}} team",
- "emails.webhook.subject": "Your webhook {{webhook}} has been stopped",
- "emails.webhook.hello": "Hello {{user}}",
- "emails.webhook.body": "Your webhook {{webhook}} on project {{project}} has been stopped after {{attempts}} consecutive failures.