Chapter 13. Email

In this chapter, we’ll learn how to send email using Rails, including configuration, email templates, delivery methods, and tests. In the process, we’ll take an opportunity to revisit the user login page in order to add a screen name/password reminder, which will serve as our first concrete example of email. We’ll then proceed to develop a simple email system to allow registered RailsSpace users to communicate with each other—an essential component of any social network. We’ll see email again in Chapter 14, where it will be a key component in the machinery for establishing friendships between RailsSpace users.

13.1. Action Mailer

Sending email in Rails is easy with the Action Mailer package. Rails applies the MVC architecture ...

Get RailsSpace: Building a Social Networking Website with Ruby on Rails™ 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.