Skip to content

armgit / ente

Public Imported from GitHub
0

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

new provider

Anand Baburajan5b1d54a4c92e
diff --git a/server/mail-templates/discount_coupon_windscribe.html b/server/mail-templates/discount_coupon_windscribe.html
new file mode 100644
index 0000000000..56e9e7b3e0
--- /dev/null
+++ b/server/mail-templates/discount_coupon_windscribe.html
@@ -0,0 +1,16 @@
+{{template "base" .}} {{define "content"}}
+<h2>Ente Friends - Windscribe coupon code</h2>
+
+<p>Hello,</p>
+
+<p>
+ Get a 3 month Windscribe Pro trial then $49/yr forever with code -
+ <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 5f5456cb38..1e303360dd 100644
--- a/server/pkg/controller/discountcoupon/controller.go
+++ b/server/pkg/controller/discountcoupon/controller.go
@@ -25,6 +25,7 @@ var AllowedProviders = map[string]bool{
"Kagi": true,
"Tuta": true,
"Notesnook": true,
+ "Windscribe": true,
"Test": true,
}
@@ -152,6 +153,9 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, coupon
case "Notesnook":
subject = "Ente Friends - Notesnook discount code"
templateName = "discount_coupon_notesnook.html"
+ case "Windscribe":
+ subject = "Ente Friends - Windscribe discount code"
+ templateName = "discount_coupon_windscribe.html"
case "Test":
subject = "Ente Friends - Test trial code"
templateName = "discount_coupon_test.html"