469,572 Members | 1,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

How to Send an SMS

Hi. I have been implementing a simple email notification system using
the
handy class SmtpClient:

With SmtpClient
.Host =MailServer
.Send(MailMessage)
'...

now my client is asking also for a SMS notification. Never done before.
Is there a simple way to implement it? Suggestions?

I have seen this one:
http://www.codeworks.it/net/VBNetRs232.htm
but it does not seem very handy. Looking for something simple and more
high level.

-tom

Jun 15 '06 #1
5 3555
to**************@uniroma1.it wrote:
Hi. I have been implementing a simple email notification system using
the
handy class SmtpClient: .... now my client is asking also for a SMS notification. Never done
before.
Is there a simple way to implement it? Suggestions?
I have seen this one:
http://www.codeworks.it/net/VBNetRs232.htm
but it does not seem very handy. Looking for something simple and more
high level.


This looks simpler:-
http://www.codeproject.com/aspnet/SendingSMS.asp

Andrew

Jun 15 '06 #2
Thank you Andrew :

This approach seems the way to go. I can see that it is needed, in
general, to add some web reference (e.g. net.webservicex.www).

In my case I need to be more general and cannot assume that the user is
using a specific prespecified web service. I must allow the user the
possibility to specify his own web service (while it *seems* that this
piece of information should be available at compile time).

I am wondering ... would it be possibile to add the reference
programmatically on the basis of user input? Does anyone have
information on how to do that?

If anyone has a working example on how to easily specify
programmatically a web service and send out sms, it would be really
great.

-tom

Jun 15 '06 #3
The webservice for sending sms to the world isn`t working annymore ( guess
it costed them to much )

Every mobile phone opperator has it`s own definition of there SMS webservice
so the described article is a totall waste of time

how can you send SMS from .Net ??? firs look for a good phone operator ,
get a contract with them , they will give you the logon credentials for
there webservice in return , now write a method that connects to this
webservice and start sending SMS messages

so you need a gateway service like this one

http://www.sharkysms.com/
another thingy to consider is the following , buy a mobile phone with
windows mobile
now create a app on the pocket platform in VB like this

Dim s As New Microsoft.WindowsMobile.PocketOutlook.SmsMessage(" 061234566",
"this was send with my personal gateway")
s.Send()

( so you can create your own gateway )

regards

Michel Posseth


<to**************@uniroma1.it> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
Thank you Andrew :

This approach seems the way to go. I can see that it is needed, in
general, to add some web reference (e.g. net.webservicex.www).

In my case I need to be more general and cannot assume that the user is
using a specific prespecified web service. I must allow the user the
possibility to specify his own web service (while it *seems* that this
piece of information should be available at compile time).

I am wondering ... would it be possibile to add the reference
programmatically on the basis of user input? Does anyone have
information on how to do that?

If anyone has a working example on how to easily specify
programmatically a web service and send out sms, it would be really
great.

-tom

Jun 15 '06 #4
Hi all,

One of my project I have made is setting up an Alarm system for a client.
When there was a temperature in a room that was to high I had to send an SMS
to the Mobile of the person who was in charge for this room. Anywhere,
Anytime.
The way I did is was by using a old mobile phone where there was an build in
GSM/GPRS Modem.
I was able to communicate with it over COM port by using AT-commands like
specified in the ETSI standard, I was sending PDU strings to the GSM/GPRS
Modem.
If you have any question please ask.

Kind regards,
http://www.vhdl.eu
"Michel Posseth [MCP]" <MS**@posseth.com> wrote in message
news:uZ**************@TK2MSFTNGP04.phx.gbl...
The webservice for sending sms to the world isn`t working annymore ( guess
it costed them to much )

Every mobile phone opperator has it`s own definition of there SMS
webservice so the described article is a totall waste of time

how can you send SMS from .Net ??? firs look for a good phone operator
, get a contract with them , they will give you the logon credentials for
there webservice in return , now write a method that connects to this
webservice and start sending SMS messages

so you need a gateway service like this one

http://www.sharkysms.com/
another thingy to consider is the following , buy a mobile phone with
windows mobile
now create a app on the pocket platform in VB like this

Dim s As New Microsoft.WindowsMobile.PocketOutlook.SmsMessage(" 061234566",
"this was send with my personal gateway")
s.Send()

( so you can create your own gateway )

regards

Michel Posseth


<to**************@uniroma1.it> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
Thank you Andrew :

This approach seems the way to go. I can see that it is needed, in
general, to add some web reference (e.g. net.webservicex.www).

In my case I need to be more general and cannot assume that the user is
using a specific prespecified web service. I must allow the user the
possibility to specify his own web service (while it *seems* that this
piece of information should be available at compile time).

I am wondering ... would it be possibile to add the reference
programmatically on the basis of user input? Does anyone have
information on how to do that?

If anyone has a working example on how to easily specify
programmatically a web service and send out sms, it would be really
great.

-tom


Jun 15 '06 #5

Thank you VERY much for the enlighting suggestions. They
help *a lot* to understand how things work.
From what I get it's seems that it is not possible to build

a general solution which the user can configure as he
likes, as it is possible for Email notification.

The solution by Vhdl and the second one by Michel is similar
to what I initially found on the web. Especially the com way it's not
so simple to implement and requires a phone attached to com port,
which is hardly proposable to a client.

The first one suggested by Michel would seem the only workable way.

Actually, I am a little disappointed that things are like that
and there isn't an easy way that allows configuration from the user's
part.

....mmm ...

actually my main concern is the creation of a general SMS facility
which
the user can configure, possibly using his own SMS provider. Perhaps
I could give the possibility to the User to enter the (VB.net) code
(provided by
his provider) within a text box and define some meta tags (<BodyText>,
<Date>,
.... etc) to substitute at send time Body message and other variables.
Then I could compile it on the fly. At that point the web references
could be parameters of the onfly compilation, clearly set up by user in
the
program configuration.

This would probably be a solution quite general. The inconvenient is
that
it would not be very comfortable to setup for the average user
(actually it could be a task
done at install time)

-tom

Jun 15 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Steve Horrillo | last post: by
reply views Thread by zhimin | last post: by
6 posts views Thread by John J. Hughes II | last post: by
3 posts views Thread by ultr | last post: by
11 posts views Thread by hazz | last post: by
15 posts views Thread by cj | last post: by
4 posts views Thread by =?Utf-8?B?dHBhcmtzNjk=?= | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.