Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I'll appreciate help to send SMS/MMS messages using C#.
I used Twilio and got the following error:
"Connection Error: POSThttps://api.twilio.com/2010-04-01/Accounts/ACa48a0c41c1517b0e338fe878e82b5909/Messages.json"


What I have tried:

I used clickSend:
C#
var configuration = new Configuration()
   {
       Username = "zzzz",
       Password = "zzzz"
   };
   var smsApi = new SMSApi(configuration);

   var listOfSms = new List<SmsMessage>
   {
       new SmsMessage(
           to: "+1617xxxxxxx",
           body: "test message 33",
           source: "sdk"
       )
   };
   var smsCollection = new SmsMessageCollection(listOfSms);
   var response = smsApi.SmsSendPost(smsCollection);

No errors, no SMS.

and Twilio:
C#
TwilioClient.Init("zzzz", "xxxx");

            var message1 = MessageResource.Create(
                body: "Join Earth's mightiest heroes.",
                from: new Twilio.Types.PhoneNumber("+1866zzz"),
                to: new Twilio.Types.PhoneNumber("+617zzz")
            );
            Console.WriteLine(message1.Sid);

Error on creating var message:
Connection Error: POSThttps://api.twilio.com/2010-04-01/Accounts/ACa48a0czzzzzzz909/Messages.json 
Posted
Updated 13-Sep-23 4:36am
v4
Comments
Dave Kreskowiak 6-Sep-23 19:10pm    
And do you want to share the error message? It's kind of the most important piece of information you can give to troubleshoot the problem.

1 solution

This looks like it is an issue at Twilio, so you should try their support forum.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900