module Marten::Emailing::Email::Callbacks

Overview

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.

Direct including types

Defined in:

marten/emailing/email/callbacks.cr

Macro Summary

Macro Detail

macro after_deliver(*names) #

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


[View source]
macro before_deliver(*names) #

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


[View source]
macro before_render(*names) #

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


[View source]