|
|
| | Terms of Agreement:
By using this article, you agree to the following terms...
1) You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description. |
SMS Wireless Messaging
SMS (Short Message Service) wireless messaging has exploded, allowing users throughout the world to send short messages, ringtones, logo graphics, and other information to cell phones and pagers. With 50 Billion messages sent in Quarter 1 of 2001, SMS has become commonplace in many countries.
Using SMS in ASP Applications
However, it has not been easy to embed this functionality into ASP applications until now. Simplewire has made it easy for software developers to embed SMS into their ASP applications. There are countless applications where sending wireless messages is a useful tool. Websites can notify people of new events, customer information from a program can be relayed to subscribers, or sports scores and stock alerts can be transmitted to mobile users. Can your application benefit from this type of wireless messaging?
Simplewire helps you Embed SMS
The following gives an example of how you may use Simplewire’s platform to embed SMS text-messaging into your ASP application. For more information, including how to send ringtones, logos and other features, join the Simplewire Developer Program at http://devprogram.simplewire.com and you will get lots of free resources to help you develop.
- STEP 1
Download Simplewire’s ActiveX SMS Software Development Kit available for free when you join the Developer Program at http://devprogram.simplewire.com. The ActiveX SMS SDK will run inside ASP pages, Visual C++ Projects, Internet Explorer, Visual Basic, Delphi, Powerbuilder, Microsoft Office, or any other environment that support ActiveX COM objects. As a Developer Program Member you will also have access to the Java, Perl, PHP and Shared Object versions for other applications you may need to embed wireless messaging into.
- STEP 2
Set the parameters in your code as shown in the attached source code.
Subscriber ID and Password
Your Subscriber ID and Password are obtained in an email when you join the Simplewire Developer Program.
sms.MsgPin
The sms.MsgPin is the phone number of the pager or cell phone to which you are sending a message. It is the same number that you use to make a voice call to or send a page to the device. You must enter both the phone number, as well as country code or area code of the mobile device to which you are sending the message.
sms.MsgFrom
The sms.MsgFrom is the area in which to specify the name of the person or company who is sending the message. This will be displayed in the message received by the mobile device, in order to let the receiver know the actual name of the person or company who sent the message.
sms.MsgCallback
The sms.MsgCallback is the phone number at which the receiver may respond to your message. When the user receives the message, they will be able to hit send, and automatically dial the callback number that was specified. It is important to note that the callback number allows the receiver of the wireless message to initiate a voice call to the callback number, not another wireless message in reply. Furthermore, the callback number is not physically displayed in the message received by the mobile device. Only the From text and the Message text are actually displayed on the mobile device. The callback feature is not available on all networks.
sms.MsgText
The sms.MsgText obviously represents the text of your message. It must be within the limits of the number of characters that the mobile device you are sending to can receive. This is usually between 140-160 characters, and varies depending on the network and mobile device hardware.
Testing on Virtual Mobile Phone
Test on your Virtual Mobile Phone
In order to allow free testing, Simplewire will assign you a virtual mobile phone # to which you can send, and then view messages on your screen. You may even view the appearance of the message as it would look on a real phone, as pictured.
- Congratulations!
Once you have embedded the SMS Software Development Kit, and sent to your virtual phone, you have created a wireless messaging application!
Wireless Connectivity
In order to now allow your application to send to mobile phones throughout the world, you have several options. You may work with the carriers (Sprint, France Telecom, BT Cellnet, etc.) Or you can use a gateway through a provider who has already set up connections to these networks. Simplewire offers such a network. Once you have your virtual mobile phone receiving messages, Simplewire can help you begin sending live messages.
Questions or Comments
I hope that this tutorial has helped those of you who wish to embed wireless messaging into your ASP applications. If you have any questions, please contact me at devprogram@simplewire.com. One of the main reasons I love it at Simplewire is that we are developers and we love to work with developers to help them create all of the exciting new applications that will make our future. Looking forward to speaking with some of you.
| | Download article
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.
Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE: 1)Re-scan downloaded files using your personal virus checker before using it. 2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com
| Terms of Agreement:
By using this article, you agree to the following terms...
1) You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description. | Other 3 submission(s) by this author
| | | Report Bad Submission | | | Your Vote! |
See Voting Log | | Other User Comments | 10/8/2001 4:51:52 AM:diederik he man,
this is an ad! you will have
to pay to
use this functionality...
| 10/8/2001 1:41:36 PM:Bob White Its not an ad. Sending SMS costs money
no matter how you do it. It just so
happens that this code uses the
Simplewire network in order to send
SMS. However, at some point you will
have to pay recurring fees in order to
send mobile alerts.
| 5/4/2002 1:19:52 PM:Syd Excellent article Bob. Thanks for
sharing your code.
| 5/18/2002 2:00:20 AM:Kostas "Once you have your virtual mobile
phone receiving messages, Simplewire
can help you begin sending live
messages"
Question:
Is it a free
service?
| 6/5/2002 12:48:16 PM:IVANOFT Bob
Do you know about any hope for a
developer in Colombia (South America)
to build these kind of web
systems?
One to send SMS
messages?
Thanks!
Great article.
| 7/31/2002 6:33:49 AM:R.Mohanakrishnan Is it possible to send SMS from my
applications developed using Power
Builder and MS SQL Server. If so kindly
send me the details how to send SMS
| 8/5/2002 5:48:11 AM:R. Mohanakrishnan I will use and come back to you sir.
| 8/9/2002 5:01:03 AM:lino this article has for me most
interest.
my site in maintenance from
me on a webserver in my company. to the
server i have a gsm-phone. how can i
send sms to my client from my website?
i am not more expert of vbscript if is
possible i try to have what to do for
have a dll or a ocx or.... for connect
my asp page work with the gsmphone.
tanks very much Lino
| 10/3/2002 8:31:51 AM: Hi. This is ground breaking stuff for
me. I do have one problem I get the
message 107. Internet Connection Timed
Out when I run the script.
I am
behind a firewall ? You think this
could be the cause ? Can you please
email me stephencox@postmaster.co.uk
| | Add Your Feedback! | Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.
NOTICE: The author of this article has been kind enough to share it with you. If you have a criticism, please state it politely or it will be deleted.
For feedback not related to this particular article, please click here. | | |