The LongMessage property gets or sets how a message (sent using
SMS.SendSMS and
SMS.SendSMSToQueue methods) is to be treated if it exceeds
the maximum permissible length for a given type of
Encoding.
The LongMessage property value is of type
mCore.LongMessage
LongMessage setting can be defined to do one of the following in case of long
messages:
Truncate - The outgoing text message is truncated to one message of length based on type of character encoding
Split - The message is split in to multiple messages with each message length within the maximum size depending on character encoding
Formatted Split - Same as Split, except that this mode adds a page number to each split part of outgoing message at the end of the message (e.g. Msg 1/2)
Concatenate - Splits the outgoing message to multiple messages, which when received by the recipient, is displayed as one single message.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
As per GSM specifications, the maximum number of characters allowed in a single text message is dependent on the type of character encoding as given below:
Important:
| Visual Basic |
Public Class MyClass Dim strMsg As String
Catch ex As mCore.GeneralException |
| C# |
class MyClass SetCommParameters(); catch
(mCore.GeneralException e) catch
(mCore.GeneralException e) |
mCore.SMS.Encoding Property
mCore.SMS.SendSMS Method