Last Updated on : 2023-06-15 05:31:42
Add email templates based on the template name, title, content, and other information.
POST: /v1.0/iot-03/msg-templates/mails
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
name | String | true | The template name with 1 to 30 characters. | |
title | String | true | The template title with 1 to 50 characters. | |
sender_name | String | true | The sender name with 1 to 30 characters. For example, set the sender to Jack, and the sender’s email address to test@example.com. The receiver will see the sender’s address as “Jack” test@example.com. | |
content | String | true | The template content in the format of HTML and text. The maximum capacity is 28 KB. | |
type | Integer | true | The email type. Valid values:
|
|
remark | String | true | The remarks of the application for the email template. Describe your application scenario with 1 to 100 characters. |
Parameter name | Type | Description |
---|---|---|
result | MsgTemplatesRes |
Description of result
Parameter name | Type | Description |
---|---|---|
template_id | String | The template ID. The returned template ID will not take effect until it is approved. Please wait patiently for the result of the review. |
POST: /v1.0/iot-03/msg-templates/mails
{
"name": "Template of Email Verification Code",
"sender_name": "Jack",
"title": "Verification Code",
"content": "You are registering with your email address. The verification code is: ${code}, valid for 5 minutes.",
"type": 0,
"remark": "The current email template applies to the registration scenario."
}
{
"result": {
"template_id": "MAIL_1616396456"
},
"t": 1586153261345,
"success": true
}
For more information, see error code.
Below are the public templates we provide, and they are the quick start tools for all developers. By default, all developers who subscribe to the email service have access to the public templates, and simply use the public templates by inputting the template ID from the table below when sending emails.
Template ID | Message Type | Title | Message Content |
---|---|---|---|
MAIL_1624531323 | Verification | Verification Code | Below is your verification code ${code}. For your account security, please do not share this code with others. |
MAIL_1624531338 | Verification | Password Retrieval | You have submitted a request for password retrieval, and the verification code is ${code}. For the security of your account, please do not share this verification code with others. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback