Send SMS Messages With ASP and OpenSMS

Send SMS Messages With ASP and OpenSMS

In this article we will learn how to use LiveSoup OpenSMS. We & # 39; ll use the ASP to address specific issues such as OpenSMS COM v & agrave; send an SMS test. Open & Download FreeSMS is free. v & agrave; For sending 5 free SMS messages. To test m & atilde; v command For example, if you are running Windows 98, NT, 2000, or XP with IIS5.

In the near future, Become a member! Popular with millions of short messages (SMS) sent each time. Many businesses use SMS to stay connected. Their email updates with the latest updates. The latest products, resources, news, and more. even They call the phone. While they are working on a foreign language, Nearly one hundred years ago, Start with the SMS to their account, and tell them what they are saying. Both new and exciting, new products, free shipping, & hellip; their.

OpenSMS

Before we understand how to use LiveSoup's OpenSMS, first understand the SMS & nbsp; & nbsp; message.

Short Message Service (SMS) l & agrave; A service for sending and receiving text messages to or from a mobile phone. SMS & amp; has become popular, also popular. Part of the GSM (Global System for Mobiles) standard.

C & rsquo; Can be sent as a combination of c & self, v & agrave; Text messages are usually b & w; It can hold up to 160 k. self. Messages based on & k; Cyrillic self can be composed of 140 k & self, v & agrave; if the standardized & k & yacute; International UCS2 c. can be composed of 70 k & self.

LiveSoup It develops a compact COM piece for SMS, which sends SMS messages to 245 networks in 93 countries. We make specific COM components using any COM compiler such as ASP, placing a & agr; after Call the SendSMS method of n & oacute ;.

& Ldquo; OpenSMS features:

- ActiveX object COM
- C & Can send messages to over & nbsp; 250 supported mobile networks in 100 countries
- Send a message to multiple recipients
- switch between c & atilde; v & agrave; number
- Supports up to 40 messages a day
- HTTP / 1.0 protocol connection v & agrave; HTTP / 1.1
- Supports firewall / proxy setup
- ...

Before proceeding, go to page http://livesoup.com/testopensms.asp to download & install OpenSMS, v & agrave; Page http://livesoup.com/support/OpenSMSLite/OpenSMSLite_UserGuide.pdf to download the OpenSMS pdf file. I & # 39; ve set up OpenSMS v & agrave; Read through.

OpenSMS COM components; One of the program identifiers (ProgID) of & ldquo; LiveSoup.OpenSMSLite & rdquo ;, v & agrave; Specifically, Can use the Server.CreateObject method of ASP, as follows:

Set objOpenSMS = Server.CreateObject (& ldquo; LiveSoup.OpenSMSLite & rdquo;)

Before you open OpenSMS, Can be used to send an SMS, belonging to the UserName v & agrave; Your password? should be g. When you join LiveSoup.com, the details are emailed to you. Use the following:

objOpenSMS.Username = & ldquo; xxxxxxxxxxx & rdquo;
objOpenSMS.Password = & ldquo; xxxxxxxxxxx & rdquo;

The Error2Text method only r & otilde; d & ugrave & agr; Returns the status of a string, such as l & agrave; & ldquo; The message was accepted and is scheduled for delivery & rdquo ;, or some form of risk. Example 99:

& lsquo; Display the error message / status of the text objOpenSMS.Error2Text = True

Released earlier, the OpenSMS is free. 100% for v & agrave; send 5 messages. If you decide that you want to use OpenSMS based on the original basic form, c. able to pay for sending a message. If you belong to the OpenSMS OpenGL, true, you Can test your message. The actual message is sent to the recipient:

& lsquo; Only test message objOpenSMS.TestMode = True

One of the big things that needs to be done. & yacute; about OpenSMS l & agrave; c & c; Can change the sender ID of each message you send. Usually, if a person receives a message v & agrave; Sender not valid in their address book, The sender's phone number will be displayed. Their ID. By changing the OpenIDs' OpenID, you will be able to: can show We are changing our minds. Your phone number by default:

& lsquo; Change the sender ID from the phone number to TestMessage
objOpenSMS.SenderID = & ldquo; TestMessage & rdquo;

If we need to send many messages in one send, So, As part of OpenSMS's Persistent Persist, true, it will keep a connection to the LiveSoup SMS mes- sage opened at all times:

& lsquo; Keep a link to the owner objOpenSMS.Persistent = True

In order to be able to send and receive SMS messages, we need to add their phone numbers (comma separated by commas) to their recipients. OpenSMS. Each recipient's mobile phone number must be in international format, as follows:

objOpenSMS.Recipients = & ldquo; 583940293, 614105559302, 134205940 & rdquo;

The recipient field as shown below, Select to send SMS to three international mobile numbers: one in Venezuela, one in Australia, and one in Australia. one in Canada.

Two of the major issues of OpenSMS include selecting the details of a proxy server. C & rsquo; ProxyAddress v & agrave; ProxyPort, v & agrave; c. can be used as follows:

& lsquo; X Specifies a proxy server
objOpenSMS.ProxyAddress = & ldquo; proxy.devArticles.com & rdquo;
objOpenSMS.ProxyPort = 8080

Use OpenSMS with ASP

Make sure that OpenSMS is running at the time. Create a new & nbsp; file called & agrave; testsms.asp in the m & agrave; IIS c. behave. Enter the m & atilde; the following command: v testsms.asp v & agrave; save:

& lt;%
dim strSubmit
dim strUser
dim strPass
dim strTo
dim strMessage
dim strID
dim blnTest
dim objOpenSMS
strSubmit = Request.Form (& quot; submit & quot;)
if strSubmit = & quot; & quot; then
'Get SMS details
% & gt;

& lt; html & gt;
& lt; head & gt;
& lt; title & gt; OpenSMS test & lt; / title & gt;
& lt; / head & gt;
& lt; body bgcolor = & quot; lightblue & quot; & gt;
& lt; form name = & quot; frmSMS & quot; action = & quot; testsms.asp & quot; method = & quot; post & quot; & gt;
& lt; h1 & gt; Send SMS & lt; / h1 & gt;
Your OpenSMS username: & lt; br & gt; & lt; input type = & quot; text & quot; name = & quot; user & quot; & gt; & lt; br & gt;
Your OpenSMS password: & lt; br & gt; & lt; input type = & quot; text & quot; name = & quot; pass & quot; & gt; & lt; br & gt;
Sender ID: & lt; br & gt; & lt; input type = & quot; text & quot; name = & quot; id & quot;
value = & quot; DevArticles & quot; & gt; & lt; br & gt;
& lt; br & gt; & lt; hr color = & quot; black & quot; size = & quot; 1 & quot; & gt;
Recipient phone numbers: & lt; br & gt; & lt; input type = & quot; text & quot; name = & quot; nums & quot; & gt; & lt; br & gt; (Must have in international format. Separate phone numbers with commas)
& lt; br & gt; & lt; br & gt;
Message: & lt; br & gt;
& lt; textarea name = & quot; msg & quot; rows = & quot; 5 & quot; cols = & quot; 30 & quot; & gt; & lt; / textarea & gt;
& lt; br & gt; & lt; input type = & quot; submit & quot; name = & quot; submit & quot; value = & quot; Send SMS & quot; & gt;
& lt; / form & gt;
& lt; / body & gt;
& lt; / html & gt;
& lt;%
else
'Try sending an SMS
strUser = Request.Form (& quot; user & quot;)
strPass = Request.Form (& quot; pass & quot;)
strTo = Request.Form (& quot; nums & quot;)
strMessage = Left (Request.Form (& quot; msg & quot;), 160)
strID = Request.Form (& quot; id & quot;)
set objOpenSMS = Server.CreateObject (& quot; LiveSoup.OpenSMSLite & quot;)
objOpenSMS.Username = strUser
objOpenSMS.Password = strPass
objOpenSMS.Recipients = strTo
objOpenSMS.SenderID = strID
objOpenSMS.Message = strMessage
objOpenSMS.Error2Text = True
'Send message
objOpenSMS.SendSMS

& lt; h1 & gt; Result & lt; / h1 & gt;
& lt;% = objOpenSMS.ResponseCode% & gt;
& lt; br & gt; & lt; br & gt; & lt; a href = & quot; testsms.asp & quot; & gt; Send Another & lt; / a & gt;
& lt;%
end if
% & gt;


Section m & atilde; The command displays an HTML form in the browser that accepts the details of the SMS message to send. As soon as n & t submit is selected, A new instance of OpenSMS is created, based on the name of the file. received a. The value is called from the form. SendSMS is called. SendSMS connects to your Live Soup SMS master account. send SMS with the details we have just set up.

You can see from For example, it's easy to send and receive SMS using OpenSMS. The details of the SMS message are sent to the LiveSoup SMS mes- sage, message format compatible with & agrave; send n Go to GSM gateway and connect to the recipient's mobile phone. send a message back to me in the OpenSMS, m & agrave; We have access to the ResponseCode variable of n & oacute ;.

Conclude

In the Netherlands, c. A free OpenSMS is available for sending SMS messages to virtually any mobile phone in the world. C a & mgrc; you can get for example, additional in your site or your commercial interface (each implementation is required to send an SMS through OpenSMS with a .05USD). Under the terms & amp; some thought:

- If you run an ecommerce site, Make sure that your email address is correct. It has been known for a long time. Both attractive by SMS. When & On the one hand, the popularity of the site decreases, sending a sms to your friends and family. decrease Where are they? can buy products with there.

- Create a website that offers a both from a site. popular v & agrave; C & selected by SMS to the selected network. If you have multiple services installed on your site, you can Your use of this site is at your own risk.

- You It is possible to set up a system to send a message to the mobile team, which allows them to adjust to the latest level of coverage, and make the decision. This is a great way to get started. The latest news about the latest news about the latest news. Even the face.

Hai Hien

& nbsp;