C#/.Net SMS API - short code
The C# SMS API can be used to send SMS messages with a short code sender ID. You can specify the short code in the FromAddress property of the SMS message. If an SMS is sent using a short code, the SMS Gateway will encode the number as a local digit-only number.
How to send an SMS with a short code sender ID in C# sms api
To send an SMS using a short code sender ID from the C# sms api follow these instructions:
- Create a new instance of the SMS message class (provided by the C# sms api)
- Set the from address field to the short code
- Send the sms by calling the client.send method
C# sms api short code example:
var msg = new OzxMessage();
msg.FromAddress = "1234";
msg.ToAddress = "This is an SMS from a short code";
msg.Text = "+3620111111111";
Client.Send(msg);
More information
- How to send SMS from C#
- Receive SMS in C#
- C# SMS API connect to send SMS
- C# SMS API - disconnect from SMS gateway
- C# SMS API - keepalive SMS connection alive
- C# SMS API - send a text message
- C# SMS API - SMS accepted for deliery event
- C# SMS API - SMS not accepted for delivery
- C# SMS API - submited
- C# SMS API - submit failed
- C# SMS API - delivery report successful
- C# SMS API - delivery failed report
- C# SMS API - alphanumeric sender ID
- C# SMS API how to use short code as sender ID
- C# SMS API text message class