i dont know if im suppose to post it here or in the C# form, but since im using it in a ASP.NET projet ... i'll write it here.
how can i send an SMS from a PC to a phone, and in details please, explaining EVERY step
thanks you.
and is it free?
i dont know if im suppose to post it here or in the C# form, but since im using it in a ASP.NET projet ... i'll write it here.
how can i send an SMS from a PC to a phone, and in details please, explaining EVERY step
thanks you.
and is it free?
@ICode, and are on the right track: you do this through an SMS gateway (a provider that exposes an HTTP API to the mobile networks). In practice you create an account, get a sending number, and call the provider’s REST endpoint from your ASP.NET/C# app. It is not truly free beyond trial credit; you pay per message and per country. For US recipients, if you plan to send from a regular 10-digit number, you must register your brand and campaign under A2P 10DLC or your traffic will be filtered or blocked. (twilio.com)
Quick start workflow you can apply today:
Example using HttpClient against a common REST SMS endpoint (drop into a controller or background service). Replace placeholders with your credentials and numbers:
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
var accountSid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var authToken = "your_auth_token";
var to = "+15551234567";
var from = "+15557654321";
var body = "Hello from ASP.NET!";
using var client = new HttpClient
{
BaseAddress = new Uri($"https://api.twilio.com/2010-04-01/Accounts/{accountSid}/")
};
var bytes = Encoding.ASCII.GetBytes($"{accountSid}:{authToken}");
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Basic", Convert.ToBase64String(bytes));
var form = new FormUrlEncodedContent(new Dictionary<string,string> {
["To"] = to, ["From"] = from, ["Body"] = body
});
var resp = await client.PostAsync("Messages.json", form);
var respBody = await resp.Content.ReadAsStringAsync();
if (!resp.IsSuccessStatusCode)
throw new Exception($"SMS failed: {(int)resp.StatusCode} {respBody}"); Two gotchas that trip people up: long or Unicode texts get split into multiple billed segments (GSM-7 vs UCS-2), and curly quotes/emojis can silently change encoding. Keep messages concise and watch your segment counts. (twilio.com)
Jump to Post— rohand 1For this you need to use some SMS gateways and for this you need to pay amount. It's not free. Visit below link it has nice example..
http://www.codeproject.com/KB/aspnet/SendingSMS.aspx
i dont know if …
Jump to Post— vuyiswamb 17You need a SMS gateway, they are not free, the is , they will expose a web service and you will consume a webservice that has methods to send an sms, but you need to buy the sms bundles
For this you need to use some SMS gateways and for this you need to pay amount. It's not free. Visit below link it has nice example..
http://www.codeproject.com/KB/aspnet/SendingSMS.aspx
i dont know if im suppose to post it here or in the C# form, but since im using it in a ASP.NET projet ... i'll write it here.
how can i send an SMS from a PC to a phone, and in details please, explaining EVERY step
thanks you.
and is it free?
You need a SMS gateway, they are not free, the is , they will expose a web service and you will consume a webservice that has methods to send an sms, but you need to buy the sms bundles
i dont know what you mean my 'sms gateway'.
to tell you my resorces ...
i have a phone ... and internet. thats it.
i read around and i read that there is a free way, but the telephone company don't tell you that its free. i read that its free through a service.
i think thats what i understood from that. but wasnt sure, so i posted this.
and rohand ---> i already read that but it ddnt help me alot
thanks 4 replying
in which country as you ? There are some other webservices that are exposed and they are avaiable in certain countries not all and they have limited credit because everyone uses them, so i will conclude by saying you can send an sms for free , you need a gateway , and a gateway can only be provided by Service Providers like your web hosting company, Mobile Company and other Sms gateway Service Provider like
i have looking for a way to attract uses to send free sms's for my site, since i am in South Africa , that was not possible , the only way is to but Sms bundles.
Hope i helped
Hi, Implementation of Bulk SMS API in website code through different technologies allowed to send the SMS to a mobile using Java, C#, PhP and many other. Here is the link for API codes : http://www.msgclub.net/sms-service/bulk-sms-api.aspx
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.