473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

send sms in windows application using .NET

i m developing one windows application using ASP.NET 2.0 (C#)
and i want to use SMS service in which, we can send sms from our application to the mobile number...
so plz help me in this situation.... wht can i do for that???
which services are helpful for me in my application???
Jan 25 '07 #1
10 6379
radcaesar
759 Expert 512MB
You said its Windows Application, then why did u use ASP.NET 2.0 ?

:)
Jan 25 '07 #2
[quote=radcaesar]You said its Windows Application, then why did u use ASP.NET 2.0 ?

because iam in traning in company so i cant argu on that
Jan 25 '07 #3
radcaesar
759 Expert 512MB
Hello,
If its web application, at that instance ASP.NET is prefered. If its windows apps then it will be either only c# or vb .net. You cant use System.Web Namespace in windows forms.

Clear ?

Enquire to them clearly about this, which assembly u r goin to use.

Then, For this SMS Stuff there are free web services available to send SMS from our apps.

Check

http://www.freebiesms.co.uk/developers.aspx

Also, u can use achieve this through System.Runtime.InteropServices assembly.

Here is a mock code which i shoot from a sight

using System.Runtime.InteropServices;
...
// Public Declare Function SmsOpen Lib "SMS" (ByVal ptsMessageProtocol As String, ByVal dwMessageModes As Long, ByRef psmshHandle As Long, ByRef phMessageAvailableEvent As Long) As Long
[DllImport("SMS")]
public static extern long SmsOpen (string ptsMessageProtocol, long dwMessageModes, ref long psmshHandle, ref long phMessageAvailableEvent);

// Public Declare Function SmsSendMessage Lib "SMS" (ByVal smshHandle As Long, ByVal psmsaSMSCAddress As Long, ByVal psmsaDestinationAddress As String, ByVal pstValidityPeriod As Long, ByVal pbData As String, ByVal dwDataSize As Long, ByVal pbProviderSpecificData As String, ByVal dwProviderSpecificDataSize As Long, ByVal smsdeDataEncoding As Long, ByVal dwOptions As Long, ByRef psmsmidMessageID As Long) As Long
[DllImport("SMS")]
public static extern long SmsSendMessage (long smshHandle, long psmsaSMSCAddress, string psmsaDestinationAddress, long pstValidityPeriod, string pbData, long dwDataSize, string pbProviderSpecificData, long dwProviderSpecificDataSize, long smsdeDataEncoding, long dwOptions, long psmsmidMessageID);

// Public Declare Function SmsClose Lib "SMS" (ByVal smshHandle As Long) As Long
[DllImport("SMS")]
public static extern long SmsClose (long smshHandle);

//Public Const SMS_MSGTYPE_TEXT = "Microsoft Text SMS Protocol"
public const string SMS_MSGTYPE_TEXT = "Microsoft Text SMS Protocol";

// Public Const SMS_MODE_SEND = 2 ' Open in send mode
public const long SMS_MODE_SEND = 2;

// Public Const SMSDE_GSM = 1 ' Use standard GSM encoding
public const long SMSDE_GSM = 1;

Public Const SMSAT_INTERNATIONAL = 1 ' International number format
public const long SMSAT_INTERNATIONAL = 1;

Public Const PS_MESSAGE_OPTION_NONE = 0 ' No message options
public const long PS_MESSAGE_OPTION_NONE = 0;

Public Const PS_MESSAGE_CLASS0 = 0 ' Send immediately
public const long PS_MESSAGE_CLASS0 = 0;

Public Const PSRO_NONE = 0 ' No replacements
public const long PSRO_NONE = 0;

Public Const SMS_OPTION_DELIVERY_NONE = 0 ' No delivery options
public const long SMS_OPTION_DELIVERY_NONE = 0;

:)
Jan 25 '07 #4
thanx buddy.
web services which provide u mentioned is limited for uk???
as i wnt to use my application in India...
tht can provide services me at india????
thanx
Jan 25 '07 #5
radcaesar
759 Expert 512MB
sure

check www.webservicex.net

:)
Jan 25 '07 #6
AricC
1,892 Expert 1GB
[quote=jaiminpatel963]
You said its Windows Application, then why did u use ASP.NET 2.0 ?

because iam in traning in company so i cant argu on that
Why did you report this post to the moderators?
Jan 25 '07 #7
nmsreddi
366 256MB
hello

You want to use only web services for sending messages are you using any

external harware like gsm modems ,are you going to use any other services

developed by your company.as far as windows application is considered there is no

particular need of web servises( my opinion)

regards
Jan 27 '07 #8
ya i want to use sms service in windows application
i dont want to use web services
i m intrested to use SMS gateway or gsm modem facility ...
and i m using .NET (C#)
so vl u help me ??????
Feb 1 '07 #9
nmsreddi
366 256MB
hello

if you are using gsm modem and c# windows application then i can help as much

as i can already 3 or 4 times i hav posted some part code any some links

regarding that in this forums just find out else i will try to post again
Feb 2 '07 #10
AricC
1,892 Expert 1GB
Please don't report posts and request answers through email.
Mar 20 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Filip Wtterwulghe | last post by:
Hello, We have a number of VB6 ActiveX applicationmodule(s) that are loaded into a IE6 WebBrowserControl . This WebControl is imbededded into Application X . Now We want to send a message from...
4
by: Kurien Baker Fenn | last post by:
How to send data from an ASP form to a visual basic form? Please help
2
by: Boba | last post by:
Hi, I'm programming a WinForm application. I would like to enter commands that will send output that will help me to locate bugs in the future. I know that there is a way to send output by...
1
by: GrantS | last post by:
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
2
by: iloveprincess | last post by:
Hi, I'm developing windows application using VB.Net 2005. I would like to send 'save' message using 'SendMessage' API to the excel appication. I've already got a handle of the excel window with...
4
by: Tony M | last post by:
VS 2005 - XP media - VB .net - winforms - .net 2.0 Just trying to send an email, here is the code and the error message that I get. I can't figure out how to fix it?
3
by: Aussie Rules | last post by:
Hi, I have an application that processes files from the users hard disk. The user is able to select what files they want processed from there hard disk in windows explorer. In windows...
5
sid0404
by: sid0404 | last post by:
Hi I am new to the visualstudio.net I am trying to develop an application which requires me to send data to a HTML webpage - http://patft.uspto.gov/netahtml/PTO/search-bool.html and the user...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.