Results 1 to 6 of 6
  1. #1
    tobydobo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    169

    Send SMS through Access using an SMS gateway API

    Hello,

    I am testing SMS functions in my access database, to notify a technician when a dispatch is requested. I currently have code to send email, but would like to incorporate code to also notify via SMS. I contacted the gateway provider and they have several APIs for developers but I am not sure which one will be best. Could someone look at some of the examples at the website below and tell me how I could incorporate it into a command button?

    http://www.redoxygen.com/support/wik...php?id=red_api
    One option I thought may work is the VB.NET option but I cant figure out how to implement it -



    Code example:

    Module Module1

    Sub Main()

    Dim result As Integer
    result = RedOxygen.SendSms("CI00001234",
    "username@company.com",
    "MyPassword",
    "61409000000,614090000001",
    "Hello from VB.NET")

    End Sub

    End Module

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    VBA language and syntax is closer to VB6 than VB.net. I have on several occasions taken VB6 code and plugged into VBA with little modification.

    Review http://smsco.it/en/sms_tutorials/sms...sual_basic.jsp

    This refers to a dll and tlb file when setting reference http://vb-helper.com/howto_vb6_use_system_dll.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I send SMS out from Access, but we use Twilio. I use what is probably the equivalent of the HTTP method from your link. It does require the XML library be referenced in VBA, but it works nicely. I don't know what the code for your provider would be though. I found mine by Googling "twilio vba" or something like that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    tobydobo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    169
    June7 I saw this link earlier today but it appears to require a phone or modem connected to the pc. Hoped that maybe there was some vb code that would allow you to send the text through the actual database.

  5. #5
    tobydobo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    169
    Thanks pbaldy. Would you be able to share the code you are using now perhaps? Im sure it is very similar since Twilio uses the same type of technology.

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. SMS send from Access
    By andi in forum Sample Databases
    Replies: 5
    Last Post: 01-04-2018, 07:40 PM
  2. how to send sms via ms access
    By seylom in forum Programming
    Replies: 2
    Last Post: 07-23-2014, 07:50 AM
  3. Replies: 3
    Last Post: 03-25-2013, 11:01 PM
  4. How can I send an email from access???
    By Asma in forum Programming
    Replies: 2
    Last Post: 12-07-2011, 07:49 AM
  5. VBA to Send email from Access
    By ped in forum Access
    Replies: 3
    Last Post: 08-11-2011, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums