The criteria
object specifies what type
of message to send and what the message details are.
The properties for this object are described in the following table. Properties enclosed in brackets are optional.
Property |
Description |
Type |
Value |
---|---|---|---|
|
Specifies the type of message to send. |
string |
Possible values:
|
|
Specifies the recipient of the message. If you want to send the message to multiple recipients, use the |
string |
|
|
Specifies the body text of the message. |
string |
|
|
Specifies the subject of the message. Note: This property is only valid for MMS. SMS does not support subject. |
string |
|
|
Specifies the full path and file name of the attachment. If you want to include multiple attachments to the message, use the Note: This property is only valid for MMS. SMS does not support attachments. |
string |
|
|
Specifies the MIME type of the attachment. |
string |
|
|
Specifies the full details of the message depending on its type. If this is an MMS message, the body text is added as a text attachment. |
object |
Object with the properties specified below |
|
Specifies the recipients of the message.
|
array of strings |
|
|
Specifies the Cc recipients of the message.
|
array of strings |
|
|
Specifies the Bcc recipients of the message.
This property is only valid for email messages. Note: The Messaging Service does not currently support emails. |
array of strings |
|
|
Specifies the ID of the message that is used as a template for the message to be sent. If both |
number |
|
|
If this property is set to The default value is |
boolean |
Possible values:
|
|
Specifies the attachments to include in the message. For each attachment, its full path and file name and optionally its MIME type are specified.
Note: This property is only valid for MMS. SMS does not support attachments. |
array of objects |
Each object in the array contains the properties specified below. |
|
Specifies the full path and file name of an attachment. This property is mandatory if the attachment is specified. |
string |
|
|
Specifies the MIME type of an attachment. |
string |