473,405 Members | 2,415 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,405 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 3754
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.