Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending SMS messages from VB 6.0 2

Status
Not open for further replies.

Simboti1

IS-IT--Management
Sep 12, 2008
31
BW
What is the code to send an SMS message from a VB application?
 
How do you want to send it?

From an SMS web service (not the most reliable as sites can change, disappear etc.) or from a SMS modem you have?

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
Once upon a time, when we all still had dial-up modems, most of the mobile phone companies in the Uk had a number you could connect to to send an SMS. Sadly I suspect that they don't provide anything similar these days ...
 
Hi HarleyQuinn

I would like to send from an SMS Modem

Regards

Simboti
 
Then you can use your COM ports and the AT command, a tutorial can be found here (or at least there used to be one there, I can't check now as for some reason my work filter is blocking the site [ponder]).

Hope this helps

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
I've written an application that includes sending automated SMSs and the easiest solution is to find a third party SMS agency where you can buy credits and then send SMSs by either sending an e-mail to the agency where the Subject is the mobile number and the body is the SMS, or by creating a URL and navigating to it using the WebBrowser control.

The agency we used (in the UK) is
You can then send an SMS in VB using a couple of lines of code:

Code:
SendSMS$ = "[URL unfurl="true"]http://www.txtlocal.co.uk/send.php?iuname=YourUserName&ipword=YourPassword&recipient=00447736123456&message=This%20is%20a%20test"[/URL]
WebBrowser1.Navigate2 SendSMS$

As Strongm said you can/could also buy modems into which you can stick your SIMM card and send SMSs from your PC as though they originated from your mobile but I'm not sure how easy it is to do that. I'd try the idea above first, it's very straightforward and if you speak to them nicely they usually give you 20 free credits for testing purposes.

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
>As Strongm said

No, I was talking about the fact the mobile operators used to offer free dialup gateways to their SMS service. But that was about 15 years ago. It's been a while since I dabbled in this area, but I believe that many of themn now offer email to SMS gateways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top