Marten::Emailing::Email
Inherits Marten::Template::Object::Auto / Marten::Template::Object / Marten::Template::CanDefineTemplateAttributes / Marten::Emailing::Email::Callbacks / Reference / Object
Abstract base email class.
This class holds the definition of a single email. It is supposed to be subclassed and each subclass is responsible for defining how it should be initialized, the email properties, and how it should be rendered (for example, using a specific HTML template).
Class methods
Allows to set the specific backend to use for this email.
Returns the specific backend to use for this email.
A nil value indicate that the default backend will be used.
Instance methods
Returns the global template context.
This context object can be mutated for the lifetime of the email in order to define which variables will be made available to the template runtime when rendering the email body.