hi friends Please help me for this problem
i am creating a simple register form which is gonna confirm from my any mobile number,My problem is i am getting successsfull message but am not getting any received message in my Mobile
<pre lang="C#">
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult Register(RegisterModel model)
{
if (ModelState.IsValid)
{
try
{
var smsVerificationCode =
GenerateSimpleSmsVerificationCode();
WebSecurity.CreateUserAndAccount(
model.UserName,
model.Password,
new
{
model.Mobile,
IsSmsVerified = false,
SmsVerificationCode = smsVerificationCode
},
false);
send(&amp;quot;8940495568&amp;quot;, &amp;quot;E3254R&amp;quot;, string.Format(
&amp;quot;Hi MR.&amp;quot; + model.UserName +
&amp;quot;registration verification code is: {0}&amp;quot;,
smsVerificationCode)
, model.Mobile);
Session[&amp;quot;registrationModel&amp;quot;] = model;
ViewBag.UerName = model.UserName;
return RedirectToAction(&amp;quot;SmsVerification&amp;quot;, &amp;quot;Account&amp;quot;, ViewBag.userName);
}
catch (MembershipCreateUserException e)
{
ModelState.AddModelError(&amp;quot;&amp;quot;, ErrorCodeToString(e.StatusCode));
}
}
return View(model);
}
public void send(string uid, string password, string message, string no)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http:
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}</pre>
What I have tried:
please help me ,
actually am trying to send message to my mobile number by using way of way 2 sms
already i have the login for way2 sms connection..i put the user name password and url also but when i trying to send that time i am getting success message but am not get any received message from my mobile please help me