Message templates contain fixed message content. If you need to send the same or similar messages multiple times, you can create a message template for quick message sending.
You can create different templates for different protocols using the same template name so that each type of subscribers can receive customized messages. Templates contain variables as the placeholders to represent changeable content that you can replace with your own message content. Note that you must create a template in the default protocol, or the system will not allow you to publish messages using this template name.
When creating messages using a template, you need to select a template name. The system will list all variables in the following protocol sequence: default, SMS, email, DMS, HTTP, and HTTPS. The same variables are listed only once even if they are used in multiple protocols, and the protocols they support are listed after each variable. You need to specify content for each variable in the message template, and SMN replaces them with the content you entered. If you do not enter any content for a variable, the system will treat it as empty when sending messages.
SMN tries to match different types of subscribers to the template protocols. If there is no template for a specified protocol, it will use the default template to send messages to subscribers of that protocol.
This section describes how to publish messages using a template. For more details about message templates, see 5 Message Template Management.
Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.
on the upper left to select the desired region and project.The SMN console is displayed.

on the upper left to select the desired region and project.The SMN console is displayed.
In the navigation pane, choose Topics.
The Topics page is displayed.
Select Template for Message Format. Then, manually type the template content in the Message box or click Generate Template Message to generate it automatically. The template message content cannot exceed 256 KB.



SMN delivers your message to all subscription endpoints. For details about messages for different protocols, see A.3 Messages of Different Protocols.