Message templates contain fixed and changeable content and can be used to send messages quickly. When you publish a message using a template, you can specify values for variables in the template.
Message templates are grouped by template name. You can create templates for different protocols using the same template name. You must specify the default protocol in any template name, or the system will not allow you to publish messages using that template name. When sending messages using a template, SMN tries to match different types of subscribers to the template protocols. If there is no template for a specified protocol, SMN will use the default template to send messages to subscribers of that protocol.
This section describes how to publish messages using a template.
on the upper left to select the desired region and project.The SMN console is displayed.
The Create Message Template box is displayed.

Parameter |
Description |
|---|---|
Template Name |
Template name, which:
|
Protocol |
Endpoint protocol of the template, which cannot be changed once the template is created The value can be Default, SMS, HTTP, HTTPS, DMS, or Email. If you do not specify a protocol, the Default protocol is used. |
Content |
Template content You can use variables as placeholders. Before you send messages using the template, SMN replaces the variables with the message content you specify. A variable is a string of up to 21 characters. It may contain upper- or lower-case letters, numerals, hyphens (-), underscores (_), and periods (.) and must start with a letter or numeral. The message template must meet the following requirements:
|

The template you created is displayed in the template list.