SMS message section
The SMS message section includes the components of an SMS message. The children of the SMS section should be included in the XML instructions file, if:
- The generic campaign type is set to
<sms>in the Campaign section
- You do not want to use the values set by the SMS group defined by the Newsletter tag in Common sections and elementsSee Important below.
If the SMS section children are used, they are:
- Positioned within the
<message>section of the XML instructions file
The SMS section includes the following children:
|subject||element||The subject of the message.||Mandatory. See Important below|
|body||element||The content of the text message.||Use to replace default|
|from||element||The sender of the message.||Use to replace default|
It is best practice to wrap the content of the
<body> element with a CDATA section, to avoid XML syntax problems.
XMLDelivery generally takes the default values for each of the SMS message section children from the defined SMS group. The exception is the
While the SMS
<subject> element is optional in the XSD schema:
- XMLDelivery requires the XML instruction file to include a
<subject>for an SMS message
- XMLDelivery returns a validation error if the
<subject>element is an empty string
It is best practice to always use a unique
<subject>, to be able to readily identify the delivery later.
Otherwise, use the available children if you want to change any of the default values. Do not include empty tags.
See SMS delivery working example for more about creating an XML instructions file for an SMS delivery.
- Common sections and elements
- Recipients section
- Delivery section
- Notes section
- Message section
- Building a campaign with XMLDelivery
- Filtering and added recipients
- Contactlab section
- Using XMLDelivery
- Does XMLDelivery match your needs?
- Setting up XMLDelivery
- Working examples