Home arrow PHP arrow Building A PHP-Based Mail Client (part 2)

Building A PHP-Based Mail Client (part 2)

Now that you've got a basic mail reader up and running, it's timeto learn a little more about attachments. This second segment analyzesMIME-encoded attachments, demonstrating how to decode and download them,and then integrates attachment handling features into the primitive mailclient previously demonstrated.

  1. Building A PHP-Based Mail Client (part 2)
  2. A Picture Is Worth A Thousand Words
  3. The Way Things Work
  4. Structure And Syntax
  5. Room With A View
  6. Getting Down
  7. Miles To Go
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 12
January 11, 2002

print this article


In the first part of this article, I demonstrated the basics of PHP's IMAP functions, using them to connect to a POP3 server and retrieve a list of messages from it. I also explained how to extract important message headers, showed you how to delete selected messages from the server, and gave you a crash course in PHP's session management functions.

While I have a fairly clear idea of the requirements for this application, there's still an important hole in my overall plan - I have not yet written any code to handle message attachments. This is holding up my implementation, as a number of scripts in the application will require this capability. And so, my first task today must be to understand how message attachments work, and write a few generic functions that allow easy manipulation of these attachments.

In case you don't already have the source code for the application described in this case study, you can download it here.

Let's get started!

>>> More PHP Articles          >>> More By icarus, (c) Melonfire

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: