Use this API to send text messages from C#.

  • Simple HTTP request
  • Encrypted communication over SSL
  • Long SMS (up to 765 characters)
  • Delivery status via function return code
  • Email replies

Example

public int SendSMS(String AccountID, String Email, String Password, String Recipient, String Message)
{
	WebClient Client = new WebClient();
	String RequestURL, RequestData;

	RequestURL = "https://redoxygen.net/sms.dll?Action=SendSMS";

	RequestData = "AccountId=" + AccountID
		+ "&Email=" + System.Web.HttpUtility.UrlEncode(Email)
		+ "&Password=" + System.Web.HttpUtility.UrlEncode(Password)
		+ "&Recipient=" + System.Web.HttpUtility.UrlEncode(Recipient)
		+ "&Message=" + System.Web.HttpUtility.UrlEncode(Message);

	byte[] PostData = Encoding.ASCII.GetBytes(RequestData);
	byte[] Response = Client.UploadData(RequestURL, PostData);

	String Result = Encoding.ASCII.GetString(Response);
	int ResultCode = System.Convert.ToInt32(Result.Substring(0, 4));

	return ResultCode;
}

Your Options

Trial Account

Download