PHP AND MYSQL WEB DEVELOPMENT
Script Architecture ..............................................................................623
Logging In and Out ............................................................................629
Setting Up Accounts ..........................................................................632
Creating a New Account ..............................................................634
Modifying an Existing Account ....................................................636
Deleting an Account ......................................................................636
Reading Mail ......................................................................................637
Selecting an Account ....................................................................637
Viewing Mailbox Contents ............................................................640
Reading a Mail Message ..............................................................643
Viewing Message Headers ............................................................647
Deleting Mail ................................................................................648
Sending Mail ......................................................................................649
Sending a New Message ..............................................................649
Replying To or Forwarding Mail ..................................................651
Extending the Project ..........................................................................652
Next ....................................................................................................653
28 Building a Mailing List Manager 655
The Problem ........................................................................................656
Solution Components ..........................................................................657
Setting Up a Database of Lists and Subscribers ..........................657
File Upload ........................................................................................657
Sending Mail with Attachments ........................................................658
Solution Overview ..............................................................................658
Setting Up the Database ....................................................................660
Script Architecture ..............................................................................663
Implementing Login ..........................................................................672
Creating a New Account ..............................................................673
Logging In ....................................................................................675
Implementing User Functions ............................................................678
Viewing Lists ................................................................................679
Viewing List Information ..............................................................684
Viewing List Archives ..................................................................686
Subscribing and Unsubscribing ....................................................687
Changing Account Settings ..........................................................689
Changing Passwords ......................................................................689
Logging Out ..................................................................................692
Implementing Administrative Functions ............................................693
Creating a New List ......................................................................693
Uploading a New Newsletter ........................................................695
Handling Multiple File Upload ....................................................698
xx
00 7842 FM 3/6/01 3:38 PM Page xx