SendSingleSmsMessage

Sends a single SMS message

🚧

Alternative

Our Dotdigital CPaaS API offers an alternative API call for SMS sending that allows you to send batches of SMS. Find out more about how to send SMS with the Dotdigital CPaaS API here

Note You must have Pay As You Go billing setup to use the CPaaS API, whereas you can use SMS credits with this call.

This method sends a single SMS message to a contact, provided you know their mobile number; it supports sending long SMS (greater 160 characters).

You can send an unlimited number of SMS messages through the API, and note that this method doesn't add to your allotted total calls per hour.

A successful call will result returned will be a '204 No Content'.

SOAP action: http://apiconnector.com/v2/ApiService/SendSingleSmsMessage

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • TelephoneNumber - required; string
  • SMS
    • Message - required; string

Output parameters
No output

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var telephoneNumber = "07777777777";
	var sms = new ApiSms { Message = "TestMessage" };
	client.SendSingleSmsMessage(telephoneNumber, sms);
}