Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

new provider

Anand Baburajan9a0c123eadc2
diff --git a/server/mail-templates/discount_coupon_notesnook.html b/server/mail-templates/discount_coupon_notesnook.html
new file mode 100644
index 0000000000..ad09ffa7e8
--- /dev/null
+++ b/server/mail-templates/discount_coupon_notesnook.html
@@ -0,0 +1,17 @@
+{{template "base" .}} {{define "content"}}
+<h2>Ente Friends - Notesnook discount code</h2>
+
+<p>Hello,</p>
+
+<p>
+ Here is your coupon code to get recurring 10% off the Notesnook pro yearly
+ plan -
+ <strong>{{.CouponCode}}</strong>
+</p>
+
+<p>
+ Best,<br />
+ Team Ente
+</p>
+
+{{end}}
diff --git a/server/pkg/controller/discountcoupon/controller.go b/server/pkg/controller/discountcoupon/controller.go
index 297666e09d..5f5456cb38 100644
--- a/server/pkg/controller/discountcoupon/controller.go
+++ b/server/pkg/controller/discountcoupon/controller.go
@@ -24,6 +24,7 @@ const MaxSendCount = 10
var AllowedProviders = map[string]bool{
"Kagi": true,
"Tuta": true,
+ "Notesnook": true,
"Test": true,
}
@@ -148,6 +149,9 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, coupon
case "Tuta":
subject = "Ente Friends - Tuta discount code"
templateName = "discount_coupon_tuta.html"
+ case "Notesnook":
+ subject = "Ente Friends - Notesnook discount code"
+ templateName = "discount_coupon_notesnook.html"
case "Test":
subject = "Ente Friends - Test trial code"
templateName = "discount_coupon_test.html"