Guangdong Nanhai Public Security Bureau Computer Safety Monitoring Union is an attractive and functional website often has the following characteristics: First, the content is enriched, practical, attracting the viewer who is interested in the content; Second, the page setting is reasonable, page Beautiful design; third is that the website interacts, users and websites or users communicate with users are convenient and efficient; four is the website content update and can notify the user in the first time. These features may not be particularly suitable for some large portals. Beijing's like Sina). For a general personal website or corporate website, the above features are especially important, because this type of website content is not very fast, and the viewer comes to these sites often have specific purposes (such as finding information or product information in specific areas), When the content of the website is attracted to the user, the website's update information or the latest news of the website is necessary to inform the viewer in time, in order to grasp the viewer, train the browser's "browsing loyalty". This is the role of the website mailing list. 1. What is the list of mailing list and workfall? The mailing list is a website or agency to save information to relevant users in a timely manner, saving these users and sending information to all users, respectively. On the surface, the "Addition" "Pass" used when sending an email, it is almost different. In fact, they still have differences: (1) The mailing list has a clear distribution, send the mailing list to Send specific information to a specific user; (2) The mailing list acceptors cannot achieve other acceptors, this is the biggest difference between the mailing list and email. We know, when we receive some email, it is found that there are many other users' email addresses in the "Advantages" column of the message, which is sent to a series of users through the mail list. Mail, the user feels that the sender is sent to the user separately, and cannot see information of other users. Of course, the substance is also sent. In this way, we can know that the mailing list is actually taken out of each user's email and then sends the same information one by one. The mailing list will send information separately, then, it is sure that we cannot send one by manual, only by software. Now, the message list is sent in the following ways, one is to implement through special mail group software, which read all email addresses, then send it one by one, the advantage of these software is to change the subject information of the mail for specific users or Sending people's mailbox; Diven is that these software often require registration costs; second, through special mailing list service providing website implementation, these websites help mail list issuers send information to subscribers, this is the most used The way, this way is that it is simple, free, and disadvantages are often providing website performance. It is not very stable. The email delay is often happened; third is to design a mailing list in our own website, manage yourself, this advantage is to send The information is efficient, easy to manage, and the disadvantage is that technology achievement is slightly advantageous, not very suitable for general users. We are here to program a list of functionally complete mailing through ASP.NET. Second, the design of the mailing list We must know before the design, all email addresses of the mailing list must be saved here, here, we save all email addresses in the Access database, which makes it easy to make the email address Increase, modify, delete, etc.
Here, our database is named mail.mdb, located in the Data directory. Data Name is Mail, only one field "mail" is used to save the email address. As a long-term website feature, we certainly ask not to send a detailed sending record and the sending of each message. Here, we will automatically use the topic of the log directory in the program to produce an HTML format log log file.
Now, we have basically understand the function and file structure of the program, let's see the program code: <% @ page language = "vb" debug = "true" explicit = "true"%> <% @ import namespace = "system. DATA "%> <% @ Import namespace =" system.data.oledb "%> <% @ Import namespace =" system.Web.mail "%> <% @ import namespace =" system.io "%>
style> head>