This third (and final) segment of our case study discusses theprocess of sending MIME-encoded email, demonstrating how to compose,forward and reply to email through a Web browser. It also discusses, indetail, the process of constructing a MIME-encoded message withattachments, explains PHP's HTTP upload capabilities, and examines thestandard error handler used throughout this case study.
In the previous segment of this case study, I taught you a little bit about how MIME attachments work, and demonstrated a few functions to handle multipart MIME email. At the end of that article, you had a fully-functional mail reader, though not one, alas, that allowed you to actually compose, forward or reply to a message. This concluding segment will rectify that problem, enhancing the application already developed by adding support for these important functions. Additionally, it will demonstrate PHP's HTTP upload capabilities, illustrate the process of constructing a MIME message (complete with attachments) and provide links to further reading on the topic. In case you don't already have the source code for the application described in this case study, you can download it from here.