In this chapter we learned how to send HTML e-mails from ZF2 and how to organize the template to have a cleaner code and to avoid having HTML code mixed with PHP. We also created a centralized point for sending the e-mails by simplifying the integration by just adding a line of code at each point where an e-mail has to be sent. Finally, we also modified the API in order to send the two e-mails we created.
The next chapter is the last one, in which we will complete our product functionality by implementing a security layer on the API level. We will use a simpler version of OAuth 2.0 and we will modify the client and the server to communicate using this protocol.