From 2e87d4c10d23df2d225bd9812d65a6b40fb12296 Mon Sep 17 00:00:00 2001 From: mrhid6 Date: Tue, 11 Aug 2026 09:30:19 +0100 Subject: [PATCH] feat: Changes to self hosted purchase --- mail/licence.go | 8 -------- mail/templates/linkreminder.html.tmpl | 7 ------- mail/templates/linkreminder.txt.tmpl | 8 -------- 3 files changed, 23 deletions(-) delete mode 100644 mail/templates/linkreminder.html.tmpl delete mode 100644 mail/templates/linkreminder.txt.tmpl diff --git a/mail/licence.go b/mail/licence.go index 3bbcf52..cd9da19 100644 --- a/mail/licence.go +++ b/mail/licence.go @@ -71,11 +71,3 @@ func (s Sender) SendDeletionWarning(to, instanceName, portalURL string, deleteOn DeleteOn time.Time }{instanceName, portalURL, when, deleteOn}) } - -// SendLinkReminder chases a self-hosted customer who paid but never linked. -func (s Sender) SendLinkReminder(to, instanceName string) error { - return s.sendTemplate(to, "", "linkreminder", struct { - InstanceName string - PortalURL string - }{instanceName, s.PublicURL}) -} diff --git a/mail/templates/linkreminder.html.tmpl b/mail/templates/linkreminder.html.tmpl deleted file mode 100644 index 07460d8..0000000 --- a/mail/templates/linkreminder.html.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -{{define "pill"}}{{template "chip" (dict "label" "Action needed" "tone" "pend")}}{{end}} -{{define "title"}}Finish setting up {{.InstanceName}}{{end}} -{{define "body"}} -{{template "lead" (printf "Your subscription for %s is active, but the instance is not linked yet." .InstanceName)}} -{{template "p" "Paste your install's ID in the portal to receive your licence."}} -{{if .PortalURL}}{{template "button" (dict "label" "Link my install" "url" .PortalURL)}}{{end}} -{{end}} diff --git a/mail/templates/linkreminder.txt.tmpl b/mail/templates/linkreminder.txt.tmpl deleted file mode 100644 index ae1f7ae..0000000 --- a/mail/templates/linkreminder.txt.tmpl +++ /dev/null @@ -1,8 +0,0 @@ -{{define "subject"}}Finish setting up {{.InstanceName}}{{end}} -{{define "pill"}}{{template "chip" (dict "label" "Action needed" "tone" "pend")}}{{end}} -{{define "title"}}Finish setting up {{.InstanceName}}{{end}} -{{define "body"}} -{{template "lead" (printf "Your subscription for %s is active, but the instance is not linked yet." .InstanceName)}} -{{template "p" "Paste your install's ID in the portal to receive your licence."}} -{{if .PortalURL}}{{template "button" (dict "label" "Link my install" "url" .PortalURL)}}{{end}} -{{end}}