Package io.quarkus.mailer.runtime
Class MailTemplateInstanceImpl
java.lang.Object
io.quarkus.mailer.runtime.MailTemplateInstanceImpl
- All Implemented Interfaces:
MailTemplate.MailTemplateInstance
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMailTemplateInstanceImpl(ReactiveMailer mailer, io.quarkus.qute.TemplateInstance templateInstance) -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment(String name, byte[] data, String contentType) addAttachment(String name, File file, String contentType) addInlineAttachment(String name, byte[] data, String contentType, String contentId) addInlineAttachment(String name, File file, String contentType, String contentId) bounceAddress(String bounceAddress) io.smallrye.mutiny.Uni<Void>send()Sends all e-mail definitions based on available template variants, i.e.setAttribute(String key, Object value) io.quarkus.qute.TemplateInstanceThe returned instance does not represent a specific template but a delegating template.
-
Constructor Details
-
MailTemplateInstanceImpl
MailTemplateInstanceImpl(ReactiveMailer mailer, io.quarkus.qute.TemplateInstance templateInstance)
-
-
Method Details
-
mail
- Specified by:
mailin interfaceMailTemplate.MailTemplateInstance
-
to
- Specified by:
toin interfaceMailTemplate.MailTemplateInstance
-
cc
- Specified by:
ccin interfaceMailTemplate.MailTemplateInstance
-
bcc
- Specified by:
bccin interfaceMailTemplate.MailTemplateInstance
-
subject
- Specified by:
subjectin interfaceMailTemplate.MailTemplateInstance
-
from
- Specified by:
fromin interfaceMailTemplate.MailTemplateInstance
-
replyTo
- Specified by:
replyToin interfaceMailTemplate.MailTemplateInstance
-
replyTo
- Specified by:
replyToin interfaceMailTemplate.MailTemplateInstance
-
bounceAddress
- Specified by:
bounceAddressin interfaceMailTemplate.MailTemplateInstance
-
addInlineAttachment
public MailTemplate.MailTemplateInstance addInlineAttachment(String name, File file, String contentType, String contentId) - Specified by:
addInlineAttachmentin interfaceMailTemplate.MailTemplateInstance
-
addInlineAttachment
public MailTemplate.MailTemplateInstance addInlineAttachment(String name, byte[] data, String contentType, String contentId) - Specified by:
addInlineAttachmentin interfaceMailTemplate.MailTemplateInstance
-
addAttachment
- Specified by:
addAttachmentin interfaceMailTemplate.MailTemplateInstance
-
addAttachment
public MailTemplate.MailTemplateInstance addAttachment(String name, byte[] data, String contentType) - Specified by:
addAttachmentin interfaceMailTemplate.MailTemplateInstance
-
data
- Specified by:
datain interfaceMailTemplate.MailTemplateInstance- Returns:
- self
- See Also:
-
TemplateInstance.data(String, Object)
-
setAttribute
- Specified by:
setAttributein interfaceMailTemplate.MailTemplateInstance- Returns:
- self
- See Also:
-
TemplateInstance.setAttribute(String, Object)
-
templateInstance
public io.quarkus.qute.TemplateInstance templateInstance()Description copied from interface:MailTemplate.MailTemplateInstanceThe returned instance does not represent a specific template but a delegating template.You can select the corresponding variant via
TemplateInstance.setAttribute(String, Object)where the attribute key isTemplateInstance.SELECTED_VARIANT. If no variant is selected, the default instance is used.- Specified by:
templateInstancein interfaceMailTemplate.MailTemplateInstance- Returns:
- the underlying template instance
-
send
Description copied from interface:MailTemplate.MailTemplateInstanceSends all e-mail definitions based on available template variants, i.e.text/htmlandtext/plaintemplate variants.- Specified by:
sendin interfaceMailTemplate.MailTemplateInstance- Returns:
- a
Uniindicating when the mails have been sent - See Also:
-