|
|
@ -41,7 +41,7 @@ namespace Business.BusinessLogic.SMSApiService |
|
|
|
StringBuilder sb = new StringBuilder(); |
|
|
|
byte[] buf = new byte[1024]; |
|
|
|
string url = _baseUrl + |
|
|
|
"?username=" + _userName + "&password=" + _password + "&option=xml" + |
|
|
|
"?username=" + _userName + "&password=" + _password + |
|
|
|
"&number=" + model.MobileNumber + "&message=" + HttpUtility.UrlEncode(model.SMSBody) + |
|
|
|
"&orig=" + HttpUtility.UrlEncode(_senderId); |
|
|
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
|
|
@ -62,7 +62,7 @@ namespace Business.BusinessLogic.SMSApiService |
|
|
|
|
|
|
|
var result = sb.ToString(); |
|
|
|
|
|
|
|
if (result.Contains("SUCCESS 722")) |
|
|
|
if (result.Contains("SUCCESS")) |
|
|
|
{ |
|
|
|
_tPResponse.ResponseCode = "0"; |
|
|
|
_tPResponse.Msg = "SMS Sent Successfully!"; |
|
|
|