Search...
Menu

Email Templates

Through Email Templates, you can customize the content of various notification emails sent by RootAuth to end users, including registration activation codes, login verification codes, and password reset codes, ensuring that the email style aligns with your brand.

Path: Console → Enter a specific application → Top navigation「Configuration」→ 「Branding」→ 「Email」→ Select the “Email Templates” tab

 

1. Feature Overview

  • Supports customizing three types of email templates: Registration Activation Code, Login Verification Code, and Password Reset Code.

  • Allows independent configuration of email content for both Simplified Chinese and English languages.

  • Supports the use of variables to dynamically insert application name, user email, verification code, and other information.

  • Provides real-time preview, allowing you to view the effect as you edit.

  • Custom templates take effect regardless of whether the third-party email service is enabled.

2. Template List

The page displays the three email templates in a list format:

Template Name Action
Registration Activation Code Click “Manage” to enter the editing page
Login Verification Code Click “Manage” to enter the editing page
Password Reset Code Click “Manage” to enter the editing page

 

3. Editing a Template

Click “Manage” to enter the editing page for the selected template. The page is divided into two columns:

  • Left Configuration Form: Switch language, set the email subject and body.

  • Right Real-Time Preview: Instantly renders the email style based on the left input.

3.1 Left Configuration Form

Field Required Description
Language Yes Switch between Simplified Chinese or English. When selected, the default text for the subject and body below will change accordingly, and the right preview will refresh to reflect the selected language. This setting only affects the current template and does not change the console language.
Sender Read-only Displays the sender email address configured in the third-party email service. If not configured, the default RootAuth email address is displayed.
Subject Yes Email subject. Supports variables: {{application_name}} (application name), {{email}} (user email), {{code}} (verification code).
Body Yes Email body. Supports rich text editing (bold, line breaks, etc.) and can also use the above variables. You can freely edit the text and insert variables in the editor.

3.2 Available Variables

Variable Description Example Effect
{{application_name}} The name of the current application “Data4 APP”
{{email}} The user’s email address user@example.com
{{code}} The sent verification code (6-digit number) 689043

4. Save and Test

4.1 Save

Click the “Save” button to apply the custom content for the current template. Subsequent emails of this type will be sent using the new template.

4.2 Save and Send Test Email

Click the “Save and Send Test Email” button. The system will first save the current template and then immediately send a test email to the email address associated with your currently logged-in RootAuth account, allowing you to verify the template’s effect.

Previous
Third-Party Email Service
Next
User Management
Last modified: 2026-03-23Powered by