Chapter 29. Building a Web-Based Email Service

More and more often these days, sites want to offer web-based email to their users. This chapter explains how to implement a web interface to an existing mail server using the PHP IMAP library. You can use it to check your own existing mailbox through a web page or perhaps extend it to support many users for mass web-based email such as Hotmail.

In this project, you build an email client, Warm Mail, that will enable users to

  • Connect to their accounts on POP3 or IMAP mail servers

  • Read mail

  • Send mail

  • Reply to mail messages

  • Forward mail messages

  • Delete mail from their accounts

The Problem

For a user to be able to read his mail, you need to find a way to connect to his mail server. This generally isn't the same ...

Get PHP and MySQL Web Development, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.