TWILIO cannot send sms from C# console app -
I'm having trouble using TWILIO to send SMS from the C # console app. I initially got an error The problem was "in which the method was not found: 'zero RestSharp.RestClient.set_BaseUrl (System.String)'. After applying the solution given in any other post, the application now runs. However it does not send any SMS After seeing the response in the post, I used to use the RestException property Tried and exception message as found in the following message "Permission to send SMS" has not been enabled for the area indicated by the number: + 880161xxxxxxx. So what does this mean that Twilio based application is Bangladesh (+8080 countries) Code)? Do you have any plans to update it? However, I would like to mention from the website of Miguel that I can send verification SMS from the website. Tax Number (+ 880161xxxxxxx) can manage to validate myself.
By I tried using the following code
Twilio ; Namespace SMSTestApp1 {Class Program {Static Zero Main (String [] ARG) {// Account Cid = "xxx" in twilio.com/user/account string to your account's Sid and Ath Token; String AuthToken = "yyy"; Var Migilio = new twiliorrstclient (accountcid, orthocon); Var message = twilio.SendMessage ("+ 1205490xxxx", "+ 8801615xxxxxx", "test message", new string [] {}, String.Empty); Console.WriteLine (message.Sid); If (message .reastexception! = Null) {console. WriteLine (message.RestException.Message); } Console.light line ("end"); Console.ReadKey (); }}
}
I think you should log in Your twilio portal requires clicking on the top right, where your account is named, and select an account from that drop-down menu. Once loaded, you can choose geographical permissions. You will get a list and you will need to enable the country you are also trying to send.
Comments
Post a Comment