golang-server-template/internal/mailer/templates/user_welcome.tmpl
2024-07-08 17:36:56 +08:00

45 lines
1.2 KiB
Cheetah

{{define "subject"}}Welcom to Greenlight!{{end}}
{{define "plainBody"}}
Hi,
Thanks for signing for a Greenlight account. We're excited to have you on board!
For furute reference, your user ID number is {{.userID}}.
Please send a request to the `PUT /v1/users/activated` endpoint with the follow JSON body to activate your account:
{"token": "{{.activationToken}}"}
Please note that this is a one-time use token an it will expire in 3 days.
Thanks,
The Greenlight Team
{{end}}
{{define "htmlBody"}}
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>Hi,</p>
<p>Thanks for signing up for a Greenlight account. We're excited to have you on board!</p>
<p>For future reference, your user ID number is {{.userID}}.</p>
<p>Please send a request to the <code>PUT /v1/users/activated</code> endpoint with the
following JSON body to activate your account:</p>
<pre><code>
{"token": "{{.activationToken}}"}
</code></pre>
<p>Please note that this is a one-time use token and it will expire in 3 days.</p>
<p>Thanks,</p>
<p>The Greenlight Team</p>
</body>
</html>
{{end}}