473,386 Members | 1,710 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,386 software developers and data experts.

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 3753
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
0
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
6
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
13
by: Manfred Braun | last post by:
Hi All, I am trying to understand the blocking method socket.Send(). The call blocks as expected, but does this mean, it returnes after the underlying TCP layer got a confirmation, that the send...
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...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
3
by: ultr | last post by:
Hello, I have read that send() may not send whole message and returns the nuber of bytes sent, so that we can handle the rest of the message. Is it true, because i have tested sending even 1MB...
11
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
jinu1996
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 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.