Yahoo free web hosting - . Web site notifications: These are important tidbits
. Web site notifications: These are important tidbits of information about your Web site. You will want to let your users know you ve improved the level of security for online transactions on your site, for example. . Newsletters: If you had a family Web site, for example, and wanted to let your whole family know about the new addition to your family, you could send them a newsletter. . Important announcements: Our site will be down for 5 days. Sorry for the inconvenience. We ll let you know when it is back up. (Oooh . . . an opportunity for two mailings!) . Advertising: Perhaps you ve partnered with an online comic book store to offer deals on rare comics to your members. Once you know what you want to say, you format the information you wish to share, using plain text or HTML. You try to figure out how you are going to e-mail this information to every member of your Web site. If you can figure out how to send it, you hope that your users will be able to read and appreciate what you sent with their many types of e-mail clients. In this chapter s project, you are going to send out two different e-mails: Web site change notifications and a newsletter. The former will be sent to all members of the Web site. The latter will be sent to those who subscribe to the newsletter only. You are going to use HTML in your mass e-mail, of course. Because Chapter 11 taught you how to send HTML in an e-mail, this should pose no problem at all. You can also e-mail links to an online version of the HTML you are sending, so that those with text e-mail clients can see your hard work, as well. Coding the Administration Application The first thing you re going to do is to create the administration page, where you can add and remove mailing lists. There are a few scripts to tackle, but because they all rely on each other to work, you need to enter them all now. Hey . . . you re the one who wanted to write some code. Let s get cracking! Try It Out Preparing the Database First, you re going to create the file that will hold the server, username, password, and database values. 1. Open your favorite text editor, and enter the following code, making sure you use the proper values for your server: 2. Save the file as config.php. 482 Chapter 14
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.