Package io.micronaut.email
Interface EmailDecorator
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Subinterfaces:
TemplateBodyDecorator
- All Known Implementing Classes:
DefaultTemplateBodyDecorator
,FromDecorator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Decorates every Email send by an
EmailSender
or an AsyncEmailSender
.
For example, you can use a decorator to add a bcc recipient to every email you send.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
decorate
Populates an email.- Parameters:
emailBuilder
- Email Builder
-