- Quick start guide
- System requirements
- Features
- Technology
- Installation guide
- Mobile networks
- SMS from Application and Office
- Developers guide
- SMS from SQL
- C# SMS API
- C# SMS API
- Send SMS from C#
- Receive SMS in C#
- C# sms api - connect
- C# sms api - disconnect
- C# sms api - keepalive
- C# sms api - send
- C# sms api - accepted
- C# sms api - not accepted
- C# sms api - submitted
- C# sms api - submit failed
- C# sms api - delivered
- C# sms api - delivery failed
- C# sms api - alphanumeric
- C# sms api - short code
- C# sms api - message
- C# SMS script
- C# HTTP sms
- C# SQL to SMS
- HTTP SMS API
- PHP SMS API
- VB.NET SMS API
- Programming APIs
- Service providers
- Linux SMS gateway
- Administrators guide
- SMS Marketing Platform
- Appendix
- Training
Ozeki brings you outstanding
SMS Gateway technology. Use our SMS Server products on Windows,Linux, or Android
C# SMS API
Developers can use our C# SMS API to send SMS from C#.Net. The C# SMS API comes with full source code
PHP SMS API
The ozeki PHP SMS gateway software can be used to send SMS from PHP and to receive SMS usig PHP on your website
SMPP SMS Gateway
SMS service providers use our SMPP gateway solution, that offers a high performance SMPP server and SMPP client gateway with amazing routing capabilities
C# SMS API not accepted for delivery
SMS messages sent from the C#/.Net SMS API might not be accepted for delivery for example if the C# sms api user runs out of sms credits on the Ozeki SMS gateway. To handle the sms not accepted event you need to write an event handler in your C# sms api appliction.
The C# SMS api / sms not accepted for delivery
When you send an sms from the C# SMS api the SMS gateway first checks if the you have enough credits to send the SMS. If it fins that you don't it will reject the SMS with the OnMessageNotAcceptedForDelivery call.
To handle the OnMessageNotAcceptedForDelivery C# sms api event follow these steps:
- Create the C# event handler for the OnMessageNotAcceptedForDelivery event
- Handle the incoming OnMessageNotAcceptedForDelivery event in the C# sms api code
- Use the error message returned by Ozeki SMS Gateway in the event args
C# sms api "Not Accepted For Delivery" event example:
Client.OnMessageNotAcceptedForDelivery += Client_OnMessageNotAcceptedForDelivery; static void Client_OnMessageNotAcceptedForDelivery(object sender, OzxArgs@lt;string, string> e) { Console.WriteLine("Message rejected. ID: " + e.Item1.ToString()+" Reason: "+e.Item2); }
The OnMessageNotAcceptedForDelivery event can happen because of multiple reasons. For example if the SMS routing table is not setup properly, the SMS will be stored for delivery. If there are no SMS network connections in the system there is also no chance for delivery. If such errors occur, the C# SMS API is notified immediately with this event. If there is a chance for the SMS to be delivered the OnMessageAcceptedForDelivery event is called, and the SMS is stored in the outbox messages queue of the SMS Server.
More information
- How to send SMS from C#
- How to 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 - 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