Chapter 12. Sending E-mails

Our social network has a lot of functionality and the first version is almost complete. In order to notify the users about what happens while they are away we will send them e-mails. Specifically, they will receive a welcome e-mail when they create an account and after that they will receive an e-mail each time someone posts a comment on their wall.

By the end of this chapter, you will know how to send e-mails using the ZendMail components. We will also see how to organize the HTML content of the e-mails, and how to compose them using templates and layouts.

Overview

A welcome e-mail will look similar to the following screenshot; the text is lame but as an example will work.

Overview
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.124.244