O'Reilly logo

RailsSpace: Building a Social Networking Website with Ruby on Rails™ by Aurelius Prochazka, Michael Hartl

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 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 ...

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