Sending SMS from asp.net mvc application using Red Oxygen service is pretty easy.
Benefits
- Reach people near-instantly, wherever they’re at
- Send SMS to specific individuals or entire lists
- Save time & money, compared with phone calls
- Schedule SMS to automatically send at a specified time
- Send urgent alerts with just the click of a button
- Easily reach people all over the world
Get Free Trial Account:
- Fill form at Sign up for free
- Trial Account Specifics:
- Includes 25 SMS credits
- Trial is completely free – no third-party billing
- No credit card info collected
- Live customer support
- Create trial account signing in to website using Email and Password. You will receive Account ID.
Code:
public String TestRedOxygen(SmsModel obj) { var client = new WebClient(); const string requestUrl = "https://redoxygen.net/sms.dll?Action=SendSMS"; string requestData = "AccountId=" + "account id" + "&Email=" + System.Web.HttpUtility.UrlEncode("sign-in email") + "&Password=" + System.Web.HttpUtility.UrlEncode("sign-in password") + "&Recipient=" + System.Web.HttpUtility.UrlEncode(obj.Reciever) + "&Message=" + System.Web.HttpUtility.UrlEncode(obj.Message); byte[] postData = Encoding.ASCII.GetBytes(requestData); byte[] clientResponse = client.UploadData(requestUrl, postData); String result = Encoding.ASCII.GetString(clientResponse); int resultCode = System.Convert.ToInt32(result.Substring(0, 4)); return resultCode.ToString(); }