-
ITemplateMailer- similar to
Mailerbut does not return anything, just throwsMailerExceptionon error - passing filters to template as
$params['filters']is not supported- provide all filters to your template factory in advance
LegacyTemplateRendererstill supports this feature but it may be deprecated in next major version (3.0)
- passing attachments through
$params['attachments']is not supported- an optional argument
$attachmentsis added to the method instead
- an optional argument
- similar to
-
IMessageFactory- creates
Nette\Mail\Messageinstances using most of theITemplateMailer::sendarguments.
- creates
-
MessageFactory- default implementation of
IMessageFactory - contains all current behaviour of
Mailerrelated to creating the message instance
- default implementation of
-
TemplateMailer- default implementation of
ITemplateMailerusingIMessageFactoryandNette\Mail\Mailer
- default implementation of
-
DisabledMailer- implementation if
ITemplateMailerthat does nothing and never throws
- implementation if
-
ITemplateRenderer- abstracts the way of rendering email body given a template name and data
-
TemplateRendererException- to be thrown by
ITemplateRendererimplementations
- to be thrown by
-
LegacyTemplateRenderer- renderer that uses the old
ITemplateFactoryto render latte template - may be deprecated in future major version and replaced with a proper latte renderer
- renderer that uses the old
-
TemplateRendererSelector- renderer that allows switching between various renderers based on template name.
-
DI\MailerExtension- replaces
MailerExtension - none of the deprecated classes is added to the container
- the new and non-deprecated classes are added to the container
- all previous config options still work but most are distributed among different services
defaultRendereroption can be set to anITemplateRendererservice- it is set to the
LegacyTemplateRendererby default
- it is set to the
renderersoption can be set to map of string toITemplateRendererinstancesrendererTemplatescan be set to map of renderer names to array of template names- the keys will be used to select a renderer from the
renderersarray that will render a given template - templates not provided will be rendered by the renderer set as
defaultRenderer
- the keys will be used to select a renderer from the
- replaces
TemplateMessage,ITemplateMessageFactory,TemplateMessageFactory- use
IMessageFactoryandMessageFactory
- use
Mailer- use
TemplateMailerclass andITemplateMailerinterface instead
- use
MailerExtension- use
DI\MailerExtensioninstead
- use