ASP implementation of new comments automatically SMS tips code _ Application Tips

Source: Internet
Author: User
I would like to write a program like this, but WordPress is PHP, I blog is ASP, had to write code with ASP. After some toss test, finally let my dream become reality.
The process of the program is this, when someone comments will be posted to the comments on my phone, is through a website API interface to achieve the message sent, in fact, is flying the API. Flying a letter is not to send their own information to themselves? The principle is actually very simple.
Reminder: Your mobile phone must be opened flying letter function.

Example:

====a.asp====
Copy Code code as follows:

<form name= "Form2" action= "ok.asp?id=1 method=" POST ">
<textarea id= "Content" style= "width:60%; height:70px "Name=" Liuyan "rows=" 4 "cols=" ></textarea>
<input type= "Submit" value= "release" Name= "GG" >
</FORM>

This is a form to submit a message

====ok. asp====
Copy Code code as follows:

Dim c
C=request.form ("Liuyan")
Set Xmlhttp=server.createobject ("Microsoft.XMLHTTP")
Xmlhttp.open "Get", "Https://sms.api.bz/fetion.php?username= your mobile number &password= flying letter password &sendto= your mobile number &message = "&c&", False
Xmlhttp.send ()

Receive page
---------End-----
Well, the code is basically like this, so simple ah. But I was tested for one hours before the test was successful. In fact, this API can do many things, this is just a small application, a larger application can do a if the server is online, if the server or Web site can not access to send a message to remind, haha. Yes, like a Web sitter's function.
Red font is the core code, about the jump page code I used a few are not, jump or fail to jump to the full screen of that page, which is I do not want to see. In the end I used a piece of code I used before, I think it is not, I can not imagine a put up on the OK.

If you see this article please make a comment, I see if it is really stable, but do not send so much oh, my phone memory is not much, full of hanging.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.