• Simple Message Notification

smn
  1. Help Center
  2. Simple Message Notification
  3. User Guide
  4. Topic Management
  5. Publishing a Message
  6. Publishing a Text Message

Publishing a Text Message

Scenario

After you publish a text message to a topic, SMN will deliver the message to all confirmed subscription endpoints in the topic.

Prerequisites

Subscribers in the topic must have confirmed the subscription, or they will not be able to receive any messages.

To Publish a Text Message

  1. Log in to the management console.
  2. Click on the upper left to select the desired region and project.
  3. In the Application category, click Simple Message Notification.

    The SMN console is displayed.

  4. In the navigation pane, choose Topics.

    The Topics page is displayed.

  5. In the topic list, locate the topic to which you need to publish a message and click Publish Message under Operation.
  6. Configure the required parameters according to Table 1. The topic name is provided by default and cannot be changed.
    Table 1 Parameters required for publishing a message

    Parameter

    Description

    Subject

    (Optional) The message subject is a string of less than 512 bytes.

    Message Format

    The message format can be Text, JSON, or Template. In this context, you need to select Text.

    • Text: common text message
    • JSON: JSON message
    • Template: template message

    Message

    This is the message content, which cannot be left blank nor exceed 256 KB.

    The following figure shows an example text message.
    Figure 1 Text message example
  7. Click OK.

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