Tutorial by Examples: actionmailer

ActionMailer supports three callbacks before_action after_action around_action Provide these in your Mailer class class UserMailer < ApplicationMailer after_action :set_delivery_options, :prevent_delivery_to_guests, :set_business_headers Then create these methods under the private ...
Action Mailer provides hooks into the interceptor methods. These allow you to register classes that are called during the mail delivery life cycle. An interceptor class must implement the :delivering_email(message) method which will be called before the email is sent, allowing you to make modificat...

Page 1 of 1