User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,906 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,593 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 4714 | Replies: 6
Reply
Join Date: Feb 2007
Posts: 3
Reputation: reyuma2002 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
reyuma2002 reyuma2002 is offline Offline
Newbie Poster

Solution How do i send and receive an SMS using VB

  #1  
Feb 17th, 2007
Please guys i need help with this. I am conversant with VB but i don't understand how am going to interrellate the Mobile phone and the Server to enable them to communicate. Can someone explain to me what steps i should take i don't mind if i could see a piece of code so i can know if am on the right track.Thank you.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Posts: 5
Reputation: AycheKay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AycheKay AycheKay is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #2  
Mar 3rd, 2007
I send sms but I always send it as email to the correctly formatted address for the mobile phone provider. I did a little project in VB6 to do exactly what you are asking about. It sends email through the users Outlook, a less than perfect solution.

You could use a dropdown/combo to allow the user to select a provider. Here's the code I'm using to handle the provider:

    Select Case cboProvider
        Case "Cingular"
            strProvider = "@cingularme.com "
    
        Case "Verizon"
            strProvider = "@vtext.com"
    
        Case "AllTel", "AllTell"
            strProvider = "@message.AllTel.com"
    
        Case "T-Mobile", "TMobile"
            strProvider = "@tmomail.net"
    
        Case "Virgin Mobile", "VirginMobile"
            strProvider = "@vmobl.com"
    
        Case "Sprint"
            strProvider = "@messaging.sprintpcs.com"
    
        Case "Nextel"
            strProvider = "@messaging.nextel.com" 
    
        Case "Cellular South", "CellularSouth"
            strProvider = "@csouth1.com"
    End Select


Now you need to get the phone number and put it on the beginning of the string. Something like this:

strEmailAddress = strPhNumber & strProvider
Last edited by AycheKay : Mar 3rd, 2007 at 8:44 am. Reason: Fixed Typo & Added further explanation.
Reply With Quote  
Join Date: Feb 2007
Posts: 3
Reputation: reyuma2002 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
reyuma2002 reyuma2002 is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #3  
Mar 3rd, 2007
Hi,

Thank you so much.I am definately going to give it a trial.At the moment i maneged to send an sms from VB to a mobile phone now am working on how to send an sms from the mobile to the PC.

Am doing my Engineering project where by a Tesco customer has to send an sms to the Tesco server and receive information on the location and price of a product in the supermarket.

Regards
Reply With Quote  
Join Date: Feb 2007
Posts: 3
Reputation: reyuma2002 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
reyuma2002 reyuma2002 is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #4  
Mar 3rd, 2007
Hi,

Thank you for your help i will definately try it. So far i have managed to send an sms using VB from the PC to the mobile now am working on how i can send an sms from the mobile to the PC. Any ideas are welcomed.

Regards.
Reply With Quote  
Join Date: Mar 2007
Posts: 3
Reputation: csjoshua is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
csjoshua csjoshua is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #5  
Mar 17th, 2007
Search for "Logiccode GSM SMS ActiveX Dll" in google and download the required file.

It is easy to use. Include the reference for this DLL. Create Instance of the objects. Pass on the port name to which your mobile/GSM Modem is connected along with your mobile number, sim card number..then send.

Demo is available in the pack. Try this.

If this works. Kindly acknowledge.

If you find any other answer. Kindly forward it to me too...joshua@abstechlogiks.com
Reply With Quote  
Join Date: Mar 2007
Posts: 3
Reputation: csjoshua is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
csjoshua csjoshua is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #6  
Mar 17th, 2007
can u tell me how you have acheived to send SMS from VB Program (PC) to Mobile
Reply With Quote  
Join Date: Mar 2007
Posts: 2
Reputation: code83z is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
code83z's Avatar
code83z code83z is offline Offline
Newbie Poster

Re: How do i send and receive an SMS using VB

  #7  
Mar 23rd, 2007
Ya! please Share this codin method.
am newbie! nd waiting
plz e.mail me
<snip>
Last edited by stymiee : Mar 24th, 2007 at 6:26 pm. Reason: email removed
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 7:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC