O'Reilly logo

The Rails Way by Obie Fernandez

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

 

It’s a cool way to send emails without tons of code

 
 --Jake Scruggs[1]

Integration with e-mail is a crucial part of most modern web application projects. Whether it’s support for retrieving lost passwords or letting users control their accounts via e-mail, you’ll be happy to hear that Rails offers great support for both sending and receiving e-mail, thanks to its ActionMailer framework.

In this chapter, we’ll cover what’s needed to set up your deployment to be able to send and receive mail with the ActionMailer framework and by writing mailer models, the entities in Rails that encapsulate code having to do with e-mail handling.

Setup

By default, Rails will try to send e-mail via SMTP (port 25) of localhost. If you are running ...

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