Click here to Skip to main content
15,881,812 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: POST"

What I have tried:

I used clickSend:
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:
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")

Error on creating var message:
Connection Error: POST 
Updated 13-Sep-23 3:36am
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