To Know More, Visit: https://www.igmguru.com/digital-marke...
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.