Advertisement

04.16.2008 at 06:33AM PDT, ID: 23327010
[x]
Attachment Details

Sending SMS to gateway

Asked by gnukki in Microsoft Visual Basic.Net

Tags: Visual Basic

Hi,

I have access to a SMS gateway. I want to send a sms via a Visual Basic .NET programe, but I dont't know how. I have got a VBS example.

I want a VB function where I fill in the target and message and the function sends the SMS. The other options specified in the attached code should be static, so a function like this would be great:

sendSMS(target, messege)
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
C:\webhosting\citrusmobile\files\nemsms.vbsOption Explicit
Dim Wshshell, xmlhttp
 
Set WshShell = WScript.CreateObject("WScript.Shell")
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
 
xmlhttp.open "GET", "https://www.nemsms.dk/sms.asp" & _
	"?username=USERNAME" & _
	"&password=PASSWORD" & _
	"&sender=MyName" & _
	"&target=45abcdefgh" & _
	"&message=" & Escape("This is a test"), false
 
xmlhttp.send ""
WScript.Echo xmlhttp.responseText
 
set WshShell = nothing
set xmlhttp = nothing
[+][-]04.16.2008 at 07:16AM PDT, ID: 21367974

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: Visual Basic
Sign Up Now!
Solution Provided By: SiJP
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.17.2008 at 02:57AM PDT, ID: 21375542

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 03:00AM PDT, ID: 21375552

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 03:37AM PDT, ID: 21375703

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 03:50AM PDT, ID: 21375762

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 01:12AM PDT, ID: 21418500

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628