HELP! Need code to SMS clients !
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: HELP! Need code to SMS clients !

  1. #1
    Join Date
    Apr 2013
    Posts
    5

    Question HELP! Need code to SMS clients !

    Hello
    Greetings from Portugal !

    I have an app in VB6 + Access DB to manage a veterinary clinic. Not commercial just for my own use.

    After several years allways making some small/big alterations, finnally I decided to introduce the hability to send SMS to the clients. Just for marketing or just to remind something else.

    So, I have 2 situations, but seems the same solution.
    First one, send to a specific client a pre-defined text or not.
    Second one, filter on the database some clients and send to all the same message.

    I found 2 (commercial) solutions on the web. But I think the code for a simple sms app it's not so complicated (it's true....i didn't YET writed it)
    I think I need to initialize the modem (in my case a nokia cell phone attached to a COM port)
    Then send the respective AT commands with the number and the message.
    And receive a report of success or not of that delivery.
    Nothing more

    Now, anyone here has some code that can share with me ?

    Kind regards in advance.

    Hugo

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,418

    Re: HELP! Need code to SMS clients !

    Does your "nokia cell phone attached to a COM port" allow you to use AT commands?
    Did you, at least try to send SMS using this phone and Hyperterminal?
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2013
    Posts
    5

    Re: HELP! Need code to SMS clients !

    Quote Originally Posted by VictorN View Post
    Does your "nokia cell phone attached to a COM port" allow you to use AT commands?
    Did you, at least try to send SMS using this phone and Hyperterminal?
    Hello, and thank you for your reply.
    The answer is NO. because I don't know the AT commands to do that.

    Can you sugest ?

    Regards

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,418

    Re: HELP! Need code to SMS clients !

    Suppose, you'd like to send SMS to phone no. +1234343434. You first send to modem
    Code:
    At+CMGS=+1234343434
    Then after you got the response
    Code:
    >
    you send the text adding CtrlZ at the end of message:
    Code:
    Some message to some phoneCtrlZ
    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2013
    Posts
    5

    Re: HELP! Need code to SMS clients !

    Thank you. I will try it asap.

    I was trying with a nokia N80, because I have the USB communication cable. But each experience I do, the port state goes crazy and I need to restart the laptop again.
    Today I bought an USB-SERIAL adapter to coonect an NOKIA 6310, described as ideal to connect to a PC
    Let's see, I will do your test and I will give you the feedback
    Regards

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,418

    Re: HELP! Need code to SMS clients !

    Victor Nijegorodov

  7. #7
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,982

    Re: HELP! Need code to SMS clients !

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center