Introduction to Action Mailer in RoR | Ruby on Rails Tutorial [Updated 2024] - igmGuru
Channel: igmGuru
Date: 15/12/2022

To Know More, Visit: https://www.igmguru.com/digital-marketing-programming/ruby-on-rails-certification-training/

What is Action Mailer?
Action Mailer allows you to send emails from your application using mailer classes and views.

Mailers are similar to controllers
They inherit from ActionMailer::Base and live in app/mailers. Mailers also work very similarly to controllers. Some examples of similarities are enumerated below. Mailers have:

1. Actions, and also, associated views that appear in app/views.
2. Instance variables that are accessible in views.
3. The ability to utilize layouts and partials.
4. The ability to access a params hash.