infobip / infobip-api-csharp-client

Infobip API client library in C#, distributed as a NuGet package.
https://www.infobip.com/docs/api
MIT License
11 stars 17 forks source link

international SMS #14

Closed khaledklaxads closed 1 year ago

khaledklaxads commented 2 years ago

I used Infobip Api service in my web application but I can't send into international number just I can send into local( Egyptian number) please I need help ,i sent more email but in vain

karol-gro commented 2 years ago

I managed to send SMS to Poland from Swedish account by adding the country prefix without a plus sign. If Polish number was +48 123-456-789 (where +48 is country prefix) it would be:

var smsMessage = new SmsTextualMessage()
{
    From = "InfoSMS",
    Destinations = new List<SmsDestination>()
    {
        new SmsDestination(to: "48123456789")
    },
    Text = "This is a dummy SMS message sent using Infobip.Api.Client"
};
mateanticevic commented 1 year ago

@karol-gro that's correct 👍

@khaledklaxads let us know if you are still encountering such issues.