Hi,
I am Developing Desktop application in VS2008 with C#.
I wan to send SMS using my C# Application.
Can any one give me idea abt that.
Thanks in Advance
Pratik Asthana
Hi,
I am Developing Desktop application in VS2008 with C#.
I wan to send SMS using my C# Application.
Can any one give me idea abt that.
Thanks in Advance
Pratik Asthana
As asked about a gateway that uses a username/password, and as and noted, there are three practical paths: integrate with the gateway’s HTTP/REST API (easiest for an app), talk to a GSM modem over a serial port (direct control of a SIM), or use carrier email-to-SMS relays (limited and carrier-dependent). For anyone thinking of building a carrier-level gateway (as considered), that requires SMPP interconnects, contracts with operators and nontrivial infrastructure.
A concise, working pattern for VS2008/.NET 3.5 is to POST credential + message fields to the gateway using WebClient. Parameter names and URL come from the gateway docs; the sample below demonstrates the structure and how to read the response:
using System.Net;
using System.Collections.Specialized;
using System.Text;
var data = new NameValueCollection();
data["username"] = "MYUSER";
data["password"] = "MYPASS";
data["to"] = "15551234567";
data["message"] = "Hello from app";
using (var client = new WebClient())
{
byte[] resp = client.UploadValues("https://gateway.example.com/send", "POST", data);
string text = Encoding.UTF8.GetString(resp);
Console.WriteLine("Gateway response: " + text);
} For a local GSM modem approach, the SerialPort class can issue AT commands (text mode or PDU). Typical flow: open COM port, set AT+CMGF=1, send AT+CMGS="number", write message, then send Ctrl+Z (ASCII 26) to submit.
Troubleshooting notes: confirm exact parameter names and HTTP method from provider docs, test the gateway URL from a browser/curl first, watch for HTTPS/firewall issues, log and parse gateway response codes, and handle retries/throttling. Be mindful of message encoding/length (long or non-GSM text may be split or use UCS‑2), delivery reporting policies, and legal/opt‑in requirements. Also avoid posting real phone numbers publicly (as advised).
Jump to Post— Diamonddrake 397You have 3 options, use a gsm modem and pay a phone company for its service, pay for a sms gateway in which the company that you pay for that will give you api examples.
or the most practical is to send emails to the SMSEmail gateways, the only …
Jump to Post— Diamonddrake 397if you have a gateway, then in order to use it, you need specific information about it, there is no generic code for every interface.
what do you know about your gateway? is it an api?
Jump to Post— jatin24 21Find out more about the gateway you are registered with. I've done something similar using the Clickatell Gateway. Any of the popular gateway would have a 'Developers' section on their website where you can find information about different types of technologies/ways you can use for using their gateway and create …
Jump to Post— avirag 10Well Aravind as far as i know,
You cant do this without using 3rd party service....
You have 3 options, use a gsm modem and pay a phone company for its service, pay for a sms gateway in which the company that you pay for that will give you api examples.
or the most practical is to send emails to the SMSEmail gateways, the only problem with this option is there is a different Email address for each phone carrier, EX att is where the x's are the phone number.
Hi,
I have SMS gateway to send sms using uername and pwd
Can U tell me how to use this code in c# application or can u provide me some code for it
Thank You
Pratik Asthana
if you have a gateway, then in order to use it, you need specific information about it, there is no generic code for every interface.
what do you know about your gateway? is it an api?
Find out more about the gateway you are registered with. I've done something similar using the Clickatell Gateway. Any of the popular gateway would have a 'Developers' section on their website where you can find information about different types of technologies/ways you can use for using their gateway and create your custom application.
Download the API's. They would have examples as well, and try it out.
Hi
i am aravind and i am new for this blog. I want a small info. How can i create my own sms portal. I dont want to buy and 3 rd party service. I want to create my own and i want to send bulk sms for my clients. Is there is any one know means please help me.. Please also convey me to my mail id [email]SNIPPED[/email]
Thanks and Regards
Aravind G
Well Aravind as far as i know,
You cant do this without using 3rd party service....
The idea is at some point you have to interface with the wireless carriers. A gateway is a must, that's how its done. Now if you want tocreate your own gateway, then you have to contact the business departments of all the Wireless Phone companies you want to support and go from there.
But the easiest method is to use email gateways already provided by the phone companies. for att. That's how I do it on my site. I have a contact form that allows you to choose email or txt message. I just have a simple if statement that switches out the addy and poof. Easy simple solution.
But if you are really looking to start your own business as a wireless text gateway provider, Looking around in a C# forum isn't going to help you. To handle a serious load you are going to need a team of programmers and custom equipment somewhere near a phone hub.
Text messages are sent using a complicate process that has nothing to do with the internet or standard computer technologies. It all happens on the wireless phone provider's network.
Hi,
I am ambrish.I am Developing Windows application in VS2008 with C#.I wan to send SMS using my C# Application.Can any one give me idea abt that.My Phone no is 9787707719.
Hi, i m bhargav. i m developing web based application. so in my application i want to send sms to my clients. so please give me some company name or websites that provoides sms services..
It's never a good idea to post your phone number on the Internet.
You can do it using a email.
Like verison is @ and AT&T is @
I know lots of them.
not satisfied with answers
hi
I am virusisfound.
I have read all the post all u entered. I find it's quite interesting . I am also interested to find some thing more about it..
I want to know how can I send SMS as u all discussed before what changes. I have to perform on my code and is there is any coding please if it's possible please post some code
Hi pratikasthana17!
If you have an sms gateway software you should develop an api to create a c# app. It is not to difficult.
In the following website you can find how to use the Ozeki API, i hope this example will helps you out or gives you idea how to write your own app: <URL SNIPPED>
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.