Sending an SMS Message with ASP.NET


Posted on 16th Feb 2014 07:03 pm by admin

Often times it may be a requirement for your web application to send an SMS message. Such examples would be reminders, password resetting, and spam.Q: Can I have some code to send an SMS message?A: Unfortunately it isn't as simple as just copying and pasting some code into your application and you can start blasting out text messages. SMS is a service, and cellular carriers will charge for it. The cost varies by carrier. SMS is a standard defined set of protocols that is authenticated to. When you contact a cellular company they will provide you with a username, password, gateway (sometimes called an Endpoint), and various other protocol related configurations.There are several existing .NET SMS SDKs out there - some are free and open source - but that doesn't change the fact that ultimately, those SDKs need endpoints configuration and you are back to the problem of needing a provider.Q: OK - How do I get in touch with a company to send an SMS?A: Most often than not it isn't feasible to contact a cellular company themselves. If you were to contact say, Verizon, you would only be able to send an SMS to Verizon phones. So you would have to partner with individual carriers - then there is the pain of figuring out which number belongs to which carrier. The easiest solution is to go to a 3rd party company that handles all of the messy work for you. This gives you an advantage of sending them in a simple manner and also not needing to know or understand how the SMPP protocol (or whatever protocol they are using - there are many) works as they will almost always provide an SDK or Web Service of their own.Q: What 3rd party Gateway Provider should I use?A: It varies by country, but a popular one that is somewhat regional is Clickatell. (Disclaimer - I do not work for them nor have I used their services - I found them via Google). They also provide their own SDK with sample code. Here is a list of other ones: http://www.developershome.com/sms/smsGatewayProvComp.asp
Q: I want a vanity or custom shortcode, like 134569 instead of a phone number.A: That depends on the gateway provider. Clickatell allows you to rent one.Q: We are going to be using A LOT of SMS messages - what if I want my own gateway?A: If you want to setup your own gateway, then you will need some physical hardware are well as software. Kannel is a popular open source SMS Gateway that runs on Unix like operating systems. You will still need to contact an SMS Center and this does not mean you can start sending out SMS messages for free.
Good luck with your application.
Did you know?Explore Trending and Topic pages for more stories like this.
No comments posted yet

Your Answer:

Login to answer
337 Like 27 Dislike
Previous forums Next forums
Other forums

error reporting
hey everyone

I have a production server in which I want error reporting but only on some page

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

problem with script manager
Hi iam using Net.2005.I have created ajax enabledwebsite.i have master page in which i have script m

Why is this function returning a false value when it shouldn't be??
This is in an include file. I want it to check a value in an html form and see if it's just white s

Get ID from Database when Posting with a HTML Form
I have a form I am submitting to a MySql database. Each product has an ID # attached to it that auto

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Variable passed to each() is not an array or object
Hi,

This is a email a friend type of form, and it isn't working anymore.

<?

Comment Mod System Effects all rows...
Sorry if its confusing but here is whats going on: I have a table in a database called comments and

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash