Use ASP to do a free mailbox access. In fact, the truth is very simple, that is, the user name, password to the free mail server

Source: Internet
Author: User
Do you see this feature on some pages when you visit a Web site---you can access the site and see if there are any new messages in your free mailbox. Does this feature make you feel very exciting, very mysterious? Below, I use ASP to give an example to let you know how to achieve this function.
First you can go to some sites that provide free mail services, apply for an account and log in. When you open the mailbox, notice the contents of the Address bar. Now take 371 as an example and you'll find that the content is usually:
Http://www.371.net/prog/login?user=fighter&pass=mypassword. Where "fighter" is Your account, "MyPassword"
Is your password. Then we can get 3 messages from here. The 1th is we get the URL and filename of the processing file: "http://www.371
. Net/prog/login "2nd is the variable name that records your account: User; 3rd is the variable name that records your password: pass. Once we know this information, we have the handwritten HTML file and ASP file.
'/*html source file contents are as follows: * *
<HTML>
<HEAD>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
</HEAD>
<title>city Club Home </title>
<style type= "Text/css" >
<!--
td {FONT-SIZE:9PT}
Body {font-size:9pt}
Select {FONT-SIZE:9PT}
A {text-decoration:none; color: #003366; font-size:9pt}
a:hover {text-decoration:underline; color: #FF0000; font-size:9pt}
-->
</style>
<script language= "JavaScript" >
function Check (TT) {
if (window.document.form1.selectmail.selectedindex==0) {
Alert ("Please select your mailbox server!") ")
Window.document.form1.selectmail.focus ()
return False
}
if (tt.account.value== "") {
Alert ("Account cannot be empty!") Please fill in. ")
Tt.account.focus ()
return False
}
if (tt.account.value.length<3) {
Alert ("Account length cannot be less than 3 digits!") Please fill in. ")
Tt.account.focus ()
return False
}
if (tt.password.value== "") {
Alert ("Password cannot be blank!") Please fill in. ")
Tt.password.focus ()
return False
}
if (tt.password.value.length<3) {
Alert ("Password length cannot be less than 3 bits!") Please fill in. ")
Related Article

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.