O'Reilly logo

PHP 5 Unleashed by John Coggeshall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Writing Email in PHP

With all the power that PHP provides the developer, one thing PHP has no method of doing (at least internally) is to automate the process of sending a MIME-based email. Without this capability, PHP is unable to send emails with file attachments or embed HTML documents (complete with images and graphics)—and that's just two of the big ones! Thankfully, although not supported internally, a PHP script can be developed that will create emails using the MIME protocol. This chapter is devoted to both the theory of MIME-based email and its implementation. Of course, because you cannot properly understand a script unless you understand the theory, we will start ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required