473,390 Members | 1,146 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,390 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 6385
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
759 Expert 512MB
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.



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
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
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
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????
Jan 25 '07 #5
759 Expert 512MB

check www.webservicex.net

Jan 25 '07 #6
1,892 Expert 1GB
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
366 256MB

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)

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
366 256MB

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
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

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...
by: Kurien Baker Fenn | last post by:
How to send data from an ASP form to a visual basic form? Please help
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...
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...
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,...
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...
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...
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?
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...
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...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.