tailieunhanh - murachs asp net 4 web programming with vb 2010 phần 9
để tạo ra các ứng dụng 3 lớp cho phép bạn tách các mã trình bày từ mã truy cập dữ liệu. Và mỗi chủ đề được minh họa bằng cách sử dụng ví dụ như các ứng dụng giỏ hàng bảo trì và mua sắm . các loại của các ứng dụng cơ sở dữ liệu, bạn sẽ đối phó với mỗi ngày. | Chapter 20 How to use email custom error pages and back-button control 669 How to make sure SMTP is running on your local server Start Stop Pause buttons 1. Open the Control Panel double-click on Administrative Tools and then double-click on Internet Information Services to open the IIS Management Console shown above. 2. Expand the tree to display your local computer s IIS server and the services running under it. 3. Select the Default SMTP Virtual Server service. 4. If the SMTP service is not running the Stop button a will be disabled. In that case click the Start button to start the SMTP service. How to allow relaying for the local host 1. In the ns Management Console right-click the Default SMTP Virtual Server node and choose the Properties command. 2. Click the Access tab then click the Relay button. This displays the Relay Restrictions dialog box shown above. 3. Click the Add button to display the Computer dialog box shown above. Then select Single Computer type into the IP address field click OK to close the Computer dialog box and click OK again to close the Relay Restrictions dialog box. Figure 20-2 How to configure the SMTP service in IIS under Windows XP Download from Wow eBook 670 Section 4 skills How to create an email message Figure 20-3 shows the constructors and properties of the MailMessage class that you use to create email messages. It also shows the constructors of the MailAddress class. This class is used to create the addresses that are stored in the From To cc and Bcc properties of a mail message. The first example in this figure illustrates how you can use these classes to create a mail message that includes a carbon copy cc . Here all of the values needed to create the email message are passed to the procedure as arguments. Then the first three statements of the procedure create MailAddress objects for the from to and cc addresses. Notice that the MailAddress object for the from address includes
đang nạp các trang xem trước