You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/action_mailer_basics.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -793,13 +793,18 @@ end
793
793
Action Mailer Callbacks
794
794
-----------------------
795
795
796
-
Action Mailer allows for you to specify a [`before_action`][],
797
-
[`after_action`][], and [`around_action`][] to configure the message, and
798
-
[`before_deliver`][], [`after_deliver`][] and [`around_deliver`][] to control
799
-
the delivery.
796
+
Action Mailer allows for you to specify `*_action` callbacks to configure the message, and `*_deliver` callbacks to control the delivery.
800
797
801
-
Callbacks can be specified with a block or a symbol representing a method name
802
-
in the mailer class, similar to other callbacks (in controllers or models).
798
+
Here is a list with all the available Action Mailer callbacks, listed **in the order in which they will get called** when sending an email:
799
+
800
+
*[`before_action`][]
801
+
*[`around_action`][]
802
+
*[`after_action`][]
803
+
*[`before_deliver`][]
804
+
*[`around_deliver`][]
805
+
*[`after_deliver`][]
806
+
807
+
Callbacks can be specified with a block or a symbol representing a method name in the mailer class, similar to other callbacks (in controllers or models).
803
808
804
809
Here are some examples of when you may use one of these callbacks with mailers.
0 commit comments