How to Send an SMS

  • Thread starter Thread starter tommaso.gastaldi
  • Start date Start date
T

tommaso.gastaldi

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