【问题标题】:sending sms in twilio using asp.net使用 asp.net 在 twilio 中发送短信
【发布时间】:2015-04-08 08:34:55
【问题描述】:

twilio 和我一起工作,但我需要将消息发送到用户在文本框中输入的号码,例如(文本框的名称是 Phone_no)

  var phone = Phone_no.Text;
               var randomCode = rnd.Next(100000, 1000000);
                Session["codeNo"] = randomCode;

              var message = new TwilioRestClient(AccountSid, AuthToken);

                  var sms = message.SendMessage("Caller ID", "phone" , "Your code is: " + randomCode, "");
                  Console.WriteLine(sms.Sid);
                Response.Redirect("nextpage.aspx");

你能帮帮我吗

【问题讨论】:

    标签: asp.net random twilio


    【解决方案1】:

    试试这个

           var phone = Phone_no.Text;
           var randomCode = rnd.Next(100000, 1000000);
            Session["codeNo"] = randomCode;
    
          var message = new TwilioRestClient(AccountSid, AuthToken);
    
              var sms = message.SendMessage("Caller ID", phone , "Your code is: " + randomCode, "");
              Console.WriteLine(sms.Sid);
            Response.Redirect("nextpage.aspx");
    

    【讨论】:

      猜你喜欢
      • 2015-08-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-19
      相关资源
      最近更新 更多