Email Template and Variable Usage Guide

Template Usage Process

  1. Select an email template from the template library and add it to your personal library (it will be set to "in use" by default).

  2. Edit the email content according to your needs. When saving, it will be automatically submitted for system review.

  3. Once approved, you can use the template ID to call the email API.



Variable Usage Guide

  1. Define custom variable fields, such as username as username and age as age. Write them as {{username}} and {{age}}, and place them in the corresponding positions within the email.

  2. When calling the email API, transmit the variables in JSON format via the data parameter, for example: { "username": "Zhang San", "age": "18" }.

  3. The variables will be automatically replaced and sent in the email.


Note: Variables can be used in the email subject, email abstract, and email content.