Computer Learning Zone CLZ Access Excel Word Windows

After all, what nobler thought can one cherish than that the universe lives within us all?

-Neil deGrasse Tyson
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > TechHelp Members
Back to TechHelp Members Only    Comments List
Help with SMS Upload Images   Link   Email  
Julian Okolonji 
Private Sub HelloWorldBtn_Click()
    
    If MsgBox("Send text. Are you sure?", vbYesNoCancel) <> vbYes Then Exit Sub
    
    Dim XMLHTTP As Object
    Dim ResponseText As String, URL As String
    Dim PostData As String, ReturnLevel As Long, StatusText As String
    
     StatusBox = ""
     Status "Sending..."
    
    URL = "https://api.twilio.com/2010-04-01/Accounts/" & AccountSID & "/Messages"
    
    ' Depending on your version of Access, you may need to switch this:
    Set XMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
    'Set XMLHTTP = CreateObject("MSXML2.XMLHTTP")
    
    XMLHTTP.Open "POST", URL, False, AccountSID, AuthToken
    XMLHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    
    PostData = "From=+14134026684" & _
        "&To=TextTo" & _
        "&Body=TextBody"
    
    XMLHTTP.Send PostData
        
    ResponseText = XMLHTTP.ResponseText
    ReturnLevel = XMLHTTP.Status
    StatusText = XMLHTTP.StatusText
    
    Set XMLHTTP = Not
Richard Rost 
Any posts that contain a large amount of source code from the member classes should be posted in the Members Only Forum. Thanks.
Richard Rost 
I'm thinking maybe it could be the PLUS + in your phone number, but I don't know because I've never tried to send international texts before. US/Canada only for me.
Julian Okolonji 
Sorry Richard, I must have been engrossed in my problems and did not think of code, now I know. As for the PLUS + in the phone number, it works within the code but don't work on the form. I'm not sure if all I have to do is replace To with the To field onmy form and the message replaced with the TextBody field on my form.

I don't mind paying one of your experienced developers to help with this if it's possible or if you can actually do a Serminar on this Topic
Richard Rost 
I have zero experience with international phone calls. I don't think I've ever made one. Same with texts.

Alex? You have any idea about this one?
Alex Hedley 
Whats the exact error message you get?

No docs on the site about using international numbers?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in TechHelp Members Only.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 8:07:33 AM. PLT: 0s