NotePage, Inc. Forum Index

Text to phone from VBA page

 
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> General Questions and Announcements
View previous topic :: View next topic  
Author Message
UHsoccer



Joined: 04 Sep 2015
Posts: 1
Location: South Bend, Indiana

PostPosted: Fri Sep 04, 2015 10:21 am    Post subject: Text to phone from VBA page Reply with quote

I have the following code to send a specific message to users on a business website
What do I use for SMS provider instead of txt2day ????

[code]
YourMobileNumber="000000000" ' your cell phone number with area code
txtMessage = "Check+Requests"

' ---------------- uses txt2day references ----------------
DataToSend = "refer=txt2day&status=index&to="&YourMobileNumber&provider=uscell&message=txtMessage&terms=checked&submit=submit
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")

'replace localhost with the server you would like to post to
xmlhttp.Open "POST","http://www.txt2day.com/newsend.php",false

'set header to tell the receiving we are posting form data
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend 'send data in the form of a query string
Response.ContentType = "text"
Response.write xmlhttp.responseText
Set xmlhttp = nothing

[/code]

Appreciate any help


Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> General Questions and Announcements All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Theme created by Vjacheslav Trushkin