Does anyone have a script which will send a Text message to a cell phone?

Discussion in 'Scripting' started by Spin, Aug 20, 2008.

  1. Spin

    Spin Guest

    Gurus,

    Does anyone have a script which will send a Text message to a cell phone? I
    need this for a network monitoring product we are using. While it can send
    SMTP and pager notifications, it does not have native support for sending
    Text messages. It can invoke a DOS command, so with a script to send a txt
    message maybe I can make this work.
     
    Spin, Aug 20, 2008
    #1
    1. Advertisements

  2. Spin

    LJB Guest

    With a 10 digit AT&T phone number replacing the # characters this may work
    for you. Or you could send it to '##########@teleflip.com' and they may be
    able to route it for you. Check out the August 2008 PC World article on page
    114.


    CreateMailMessage "##########@txt.att.net", _
    "test message from VBScript", _
    "test message from VBScript"

    Sub CreateMailMessage(strTo, strSubject, strBody)
    Set appOutlook = CreateObject("Outlook.Application")
    Set msg = appOutlook.CreateItem(olMailItem)

    With msg
    .To = strTo
    .Subject = strSubject
    .Body = strBody
    .Send
    End With

    End Sub
     
    LJB, Aug 21, 2008
    #2
    1. Advertisements

  3. Spin

    Spin Guest

    Looks promising. I don't have Outlook installed on the system I want to
    test from but I do have Outlook Express. How would the code change for
    that?
     
    Spin, Aug 21, 2008
    #3
  4. Spin

    J Ford Guest

    J Ford, Aug 26, 2008
    #4
  5. Now is a good time to start learning PowerShell if you have not already. These
    guys have a set called "Netcmdlets" which among a ton of other things, includes
    a util to send SMS messages. It probably requires a modem or a go-between
    server, but I don't know because I've never had need to use it.

    http://www.nsoftware.com/PowerShell/

    HTH
     
    Hal Rottenberg, Aug 26, 2008
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.