Sending and Receiving E-Mail

It’s a rare web application that doesn’t need to send e-mail from time to time. For example, you may want to send messages to welcome users who sign up on your web site, relay passwords, or confirm orders placed with an online store. Rails ships with a library called Action Mailer, which provides developers with an easy-to-use yet powerful tool to handle e-mail.

This chapter explains how Action Mailer works and how to use it in your applications. You first learn how to configure it, and then you’ll see a few examples of how to send e-mail in various formats. In addition to sending e-mail, Action Mailer ...

Get Beginning Rails 4, Third Edition 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.