-- Refresh system email templates with Yimaru Academy branded HTML (admin portal colors).
-- Safe to run after 000066 when seeds used the original plain layout.
UPDATE email_templates SET
name = 'One-Time Password',
subject = 'Yimaru Academy — Your verification code',
body_text = 'Yimaru Academy{{if .FirstName}}, {{.FirstName}}{{end}}
Your verification code is {{.OTP}}.
It expires in {{.ExpiresMinutes}} minutes.
Please do not share this code with anyone.',
body_html = $otp_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
Your verification code
{{if .FirstName}}Hi {{.FirstName}}, {{end}}use the code below to continue signing in to Yimaru Academy.
|
One-time password
{{.OTP}}
Expires in {{.ExpiresMinutes}} minutes
|
If you did not request this code, you can safely ignore this email.
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$otp_html$,
updated_at = NOW()
WHERE slug = 'otp';
UPDATE email_templates SET
name = 'User Invitation',
subject = 'You are invited to Yimaru Academy',
body_text = 'Hi{{if .FirstName}} {{.FirstName}}{{end}},
You have been invited{{if .InviterName}} by {{.InviterName}}{{end}} to join Yimaru Academy.
Accept your invitation: {{.InviteLink}}',
body_html = $invite_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
You’re invited
{{if .FirstName}}Hi {{.FirstName}}, {{end}}you have been invited{{if .InviterName}} by {{.InviterName}}{{end}} to join Yimaru Academy.
Accept invitation
Or copy this link: {{.InviteLink}}
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$invite_html$,
updated_at = NOW()
WHERE slug = 'invitation';
UPDATE email_templates SET
name = 'Password Reset',
subject = 'Reset your Yimaru Academy password',
body_text = 'Hi{{if .FirstName}} {{.FirstName}}{{end}},
Reset your password: {{.ResetLink}}
This link expires in {{.ExpiresMinutes}} minutes.',
body_html = $reset_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
Reset your password
{{if .FirstName}}Hi {{.FirstName}}, {{end}}we received a request to reset your Yimaru Academy password. The link below expires in {{.ExpiresMinutes}} minutes.
Reset password
If you did not request a reset, ignore this email.
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$reset_html$,
updated_at = NOW()
WHERE slug = 'password_reset';
UPDATE email_templates SET
name = 'Welcome Email',
subject = 'Welcome to Yimaru Academy',
body_text = 'Hi{{if .FirstName}} {{.FirstName}}{{end}},
Welcome to Yimaru Academy! Sign in to get started: {{.LoginURL}}',
body_html = $welcome_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
Welcome aboard
{{if .FirstName}}Hi {{.FirstName}}, {{end}}your Yimaru Academy account is ready. Start learning at your own pace.
Sign in to Yimaru Academy
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$welcome_html$,
updated_at = NOW()
WHERE slug = 'welcome';
UPDATE email_templates SET
name = 'Custom Message',
body_html = $custom_html$
Yimaru Academy
|
Yimaru Academy
Online Learning Platform
|
{{.Subject}}
{{.Message}}
|
|
© 2026 Yimaru Academy · All rights reserved
|
|
$custom_html$,
updated_at = NOW()
WHERE slug = 'custom_message';