Skip to main content

Email Templates

Customize the emails sent to your users.


Available Templates

TemplateTrigger
Reset PasswordUser requests password reset
Registration ConfirmationUser registers with email/password
Welcome EmailSent after successful registration
Email VerificationUser needs to verify email address

Viewing Templates

  1. Go to syauth.com/dashboard
  2. Click Templates in the sidebar
  3. View available email templates

Creating a Template

  1. Click Create Template
  2. Select a Template Type from the dropdown
  3. Fill in the content:
FieldDescription
Template TypeThe type of email (cannot be changed after creation)
SubjectEmail subject line
BodyEmail content (HTML supported)
  1. Click Create Template

Editing Templates

  1. Find the template in the list
  2. Click the Edit button
  3. Update the Subject and Body
  4. Click Update Template

Template Variables

Use these placeholders in your templates:

VariableDescription
{{ 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

PracticeDescription
Clear subjectUsers should know what the email is
Brief contentGet to the point quickly
Include code prominentlyMake code easy to find/copy
Brand consistentlyUse your app name

Deleting a Template

  1. Find the template in the list
  2. Click the Delete button
  3. Confirm deletion

Next Steps