-
-
Save anonymous/37f285cd13fcfa43d85b to your computer and use it in GitHub Desktop.
send sms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim strURL As String = "" | |
| Dim user As String = "*??*" | |
| Dim password As String = "*??*" | |
| Dim m_num As String = "*????*" | |
| Dim message As String = "*????*" | |
| strURL = "http://api.twsms.com/send_sms.php?username=" & user _ | |
| & "&password=" & password & "&type=now&encoding=big5&mobile=" & m_num _ | |
| & "&message=" & message & "&vldtme=3600" | |
| Dim myHttpWebRequest As HttpWebRequest | |
| Dim myHttpWebResponse As HttpWebResponse | |
| Try | |
| myHttpWebRequest = CType(WebRequest.Create(strURL), HttpWebRequest) | |
| myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse) | |
| GetResponseData(myHttpWebResponse.GetResponseStream()) | |
| myHttpWebResponse.Close() | |
| Catch ex As Exception | |
| End Try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment