https://github.com/supertokens/email-sms-templates
Email and SMS templates
https://github.com/supertokens/email-sms-templates
Last synced: 4 months ago
JSON representation
Email and SMS templates
- Host: GitHub
- URL: https://github.com/supertokens/email-sms-templates
- Owner: supertokens
- Created: 2022-06-02T14:30:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T08:57:39.000Z (about 2 years ago)
- Last Synced: 2025-01-15T05:41:54.932Z (5 months ago)
- Language: HTML
- Size: 498 KB
- Stars: 9
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Emails
### Email verification
- Subject: "Email verification instructions"
- File content: /email-html/email-verification.html
- Variables:
- `${appname}`
- `${verificationLink}`
- `${toEmail}`
### Password reset
- Subject: "Password reset instructions"
- File content: /email-html/password-reset.html
- Variables:
- `${appname}`
- `${resetLink}`
- `${toEmail}`
### Magic link login
- Subject: "Login to your account"
- File content: /email-html/magic-link-login.html
- Variables:
- `${appname}`
- `${time}`
- `${urlWithLinkCode}`
- `${toEmail}`
### OTP login
- Subject: "Login to your account"
- File content: /email-html/otp-login.html
- Variables:
- `${appname}`
- `${time}`
- `${toEmail}`
- `${otp}`
### Magic link + OTP login
- Subject: "Login to your account"
- File content: /email-html/magic-link-otp-login.html
- Variables:
- `${appname}`
- `${time}`
- `${urlWithLinkCode}`
- `${toEmail}`
- `${otp}`
## Guide
- Outlook breaks if the width of the template crosses a specific width, according to mailchimp this dimensions of a mail template should be 600-800## SMS
### Magic link login
```
Click ${magicLink} to login to ${appname}This is valid for ${time}.
```### OTP login
```
OTP to login is ${otp} for ${appname}This is valid for ${time}.
```### Magic link + OTP login
```
OTP to login is ${otp} for ${appname}Or click ${magicLink} to login.
This is valid for ${time}.
```