tailieunhanh - PHP and MySQL Web Development - P124

PHP and MySQL Web Development - P124: PHP and MySQL Web Development teaches the reader to develop dynamic, secure, commercial Web sites. Using the same accessible, popular teaching style of the first edition, this best-selling book has been updated to reflect the rapidly changing landscape of MySQL and PHP. | Solution Overview 587 imap_open imap_close imap_headers imap_header imap_fetchheader imap_body imap_delete imap_expunge For a user to read his mail we will need to get his server and account details. Rather than getting these details from the user every time we ll set up a username and password database for a user so that we can store his details. Often people have more than one email account one for home and another for work for example and we should allow them to connect to any of their accounts. We should therefore allow them to have multiple sets of account information in the database. We should enable users to read reply to forward and delete existing emails as well as send new can do all the reading parts using IMAP or POP3 and all the sending parts using SMTP with mail . Let s look at how we ll put it all together. Solution Overview The general flow through this Web-based system won t be much different from other email diagram showing the system flow and modules is shown in Figure . Figure The interface for Warm Mail gives the user mailbox-level functionality and message-level functionality. 588 Chapter 27 Building a Web-Based Email Service As you can see we will first require a user to log in and then give him a choice of options. He will be able to set up a new mail account or select one of his existing accounts for use. He will also be able to view his incoming mail responding to forwarding or deleting it and send new mail. We will also give him the option of viewing detailed headers for a particular message. Viewing the complete headers can tell you a lot about a can see which machine the mail came from a useful tool for tracking down can see which machine forwarded it and at what time it reached each host useful for assigning blame for delayed might also be able to see which email client the sender used if the application adds optional information to the headers. We have used a slightly .

TỪ KHÓA LIÊN QUAN