Text vs data parameter
An alternative to the text
parameter is the data
parameter. The data
parameter can be useful in one of these three scenarios:
- Sending Unicode data
- Sending binary data
- To avoid new lines being inserted into message text
If you cannot disable automatic line wrapping in your email client application, the text
parameter can be specified on multiple lines. This does, however, cause new line characters to become part of the SMS message text. These new lines are a problem for Unicode messages, binary messages or long text messages that you want to keep to one message part.
Unlike the text
parameter, using the data
parameter on multiple lines will not result in a new line being added to the SMS message. It will also remove any white space before and after the message data
lines, ensuring an unbroken text line in the SMS.
In the below example, the email client inserts a new line before the word ‘here’:
Note: Another alternative to the text
parameter is the urltext
parameter. This allows you to use a URL encoded string, which is useful when sending special characters such as “new line” or Greek text.
Submit a Comment
Other Resources
Ask the Community
Visit Stack Overflow to join our community of developers and find the answer you need
Contact Support
Contact our support team and one of our agents will be in touch with you to answer any questions you have