Email Templates
Customize the emails sent to your users.
Available Templates
| Template | Trigger |
|---|---|
| Reset Password | User requests password reset |
| Registration Confirmation | User registers with email/password |
| Welcome Email | Sent after successful registration |
| Email Verification | User needs to verify email address |
Viewing Templates
- Go to syauth.com/dashboard
- Click Templates in the sidebar
- View available email templates
Creating a Template
- Click Create Template
- Select a Template Type from the dropdown
- Fill in the content:
| Field | Description |
|---|---|
| Template Type | The type of email (cannot be changed after creation) |
| Subject | Email subject line |
| Body | Email content (HTML supported) |
- Click Create Template
Editing Templates
- Find the template in the list
- Click the Edit button
- Update the Subject and Body
- Click Update Template
Template Variables
Use these placeholders in your templates:
| Variable | Description |
|---|---|
{{ user.first_name }} | User's first name |
{{ user.email }} | User's email address |
{{ verification_code }} | Verification code (for verification emails) |
{{ reset_code }} | Reset code (for password reset emails) |
Registration Confirmation Example
Subject: Verify your email
Hello {{ user.first_name }},
Thank you for registering! Please verify your email with this code:
{{ verification_code }}
This code expires in 1 hour.
Best regards,
The Team
Password Reset Example
Subject: Reset your password
Hello {{ user.first_name }},
We received a request to reset your password. Use this code:
{{ reset_code }}
This code expires in 1 hour.
If you didn't request this, please ignore this email.
Best regards,
The Team
HTML Emails
You can use HTML in the body:
<h1>Welcome!</h1>
<p>Hello {{ user.first_name }},</p>
<p>Your verification code is: <strong>{{ verification_code }}</strong></p>
Best Practices
| Practice | Description |
|---|---|
| Clear subject | Users should know what the email is |
| Brief content | Get to the point quickly |
| Include code prominently | Make code easy to find/copy |
| Brand consistently | Use your app name |
Deleting a Template
- Find the template in the list
- Click the Delete button
- Confirm deletion
Next Steps
- Email Verification - Verification flow
- Password Reset - Password reset flow