module

Marten::Emailing::Email::Callbacks

Provides the ability to define email callbacks.

This module provides the ability to define callbacks that are executed during the lifecycle of the considered emails. Three hooks are enabled by the use of this module: before_deliver callbacks are executed before the delivery of the email method while after_deliver callbacks are executed after it, and before_render callbacks are executed before the rendering of a template used to generate the content of the email.

Macros

after_deliver(*names)

Allows to do define callbacks that are called after delivering the email.

Source
before_deliver(*names)

Allows to do define callbacks that are called before delivering the email.

Source
before_render(*names)

Allows to do define callbacks that are called before rendering templates.

Source