INSERT INTO email_templates (slug, name, subject, body_text, body_html, variables, is_system, status)
VALUES (
'subscription_activated',
'Subscription Activated',
'Your Yimaru Academy subscription is active',
'Hi{{if .FirstName}} {{.FirstName}}{{end}},
Your "{{.PlanName}}" {{.PackageLabel}} subscription is now active{{if .ExpiresLabel}} until {{.ExpiresLabel}}{{else if .IsLifetime}} with lifetime access{{end}}.
Sign in to start learning: {{.LoginURL}}',
$subscription_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
Subscription active
{{if .FirstName}}Hi {{.FirstName}}, {{end}}your {{.PlanName}} {{.PackageLabel}} package is now active.{{if .IsLifetime}} You have lifetime access.{{else if .ExpiresLabel}} It is valid until {{.ExpiresLabel}}.{{end}}
Start learning
Thank you for subscribing to Yimaru Academy.
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$subscription_html$,
'["FirstName", "PlanName", "PackageLabel", "LoginURL", "ExpiresLabel", "IsLifetime"]'::jsonb,
TRUE,
'ACTIVE'
)
ON CONFLICT (slug) DO NOTHING;