| Package | Description |
|---|---|
| io.quarkus.mailer | |
| io.quarkus.mailer.runtime |
| Modifier and Type | Method and Description |
|---|---|
Mail |
Mail.addAttachment(String name,
byte[] data,
String contentType)
Adds an attachment.
|
Mail |
Mail.addAttachment(String name,
byte[] data,
String contentType,
String description,
String disposition)
Adds an attachment.
|
Mail |
Mail.addAttachment(String name,
File file,
String contentType)
Adds an attachment.
|
Mail |
Mail.addAttachment(String name,
org.reactivestreams.Publisher<Byte> data,
String contentType)
Adds an attachment.
|
Mail |
Mail.addAttachment(String name,
org.reactivestreams.Publisher<Byte> data,
String contentType,
String description,
String disposition)
Adds an attachment.
|
Mail |
Mail.addBcc(String... bcc)
Adds BCC recipients.
|
Mail |
Mail.addCc(String... cc)
Adds CC recipients.
|
Mail |
Mail.addHeader(String key,
String... values)
Adds a header value.
|
Mail |
Mail.addInlineAttachment(String name,
byte[] data,
String contentType,
String contentId)
Adds an inline attachment.
|
Mail |
Mail.addInlineAttachment(String name,
File file,
String contentType,
String contentId)
Adds an inline attachment.
|
Mail |
Mail.addInlineAttachment(String name,
org.reactivestreams.Publisher<Byte> data,
String contentType,
String contentId)
Adds an inline attachment.
|
Mail |
Mail.addTo(String... to)
Adds TO recipients.
|
Mail |
Mail.removeHeader(String key)
Removes a header.
|
Mail |
Mail.setAttachments(List<Attachment> attachments)
Sets the attachment list.
|
Mail |
Mail.setBcc(List<String> bcc)
Sets the BCC recipients.
|
Mail |
Mail.setBounceAddress(String bounceAddress)
Sets the bounce address.
|
Mail |
Mail.setCc(List<String> cc)
Sets the CC recipients.
|
Mail |
Mail.setFrom(String from)
Sets the sender address.
|
Mail |
Mail.setHeaders(Map<String,List<String>> headers)
Sets the list of headers.
|
Mail |
Mail.setHtml(String html)
Sets the body of the email as HTML.
|
Mail |
Mail.setReplyTo(String replyTo)
Sets the reply-to address.
|
Mail |
Mail.setSubject(String subject)
Sets the email subject.
|
Mail |
Mail.setText(String text)
Sets the body of the email as plain text.
|
Mail |
Mail.setTo(List<String> to)
Sets the TO recipients.
|
static Mail |
Mail.withHtml(String to,
String subject,
String html)
Creates a new instance of
Mail that contains a "html" body. |
static Mail |
Mail.withText(String to,
String subject,
String text)
Creates a new instance of
Mail that contains a "text" body. |
| Modifier and Type | Method and Description |
|---|---|
List<Mail> |
MockMailbox.getMessagesSentTo(String address)
Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc.
|
| Modifier and Type | Method and Description |
|---|---|
MailTemplate.MailTemplateInstance |
MailTemplate.MailTemplateInstance.mail(Mail mail) |
default MailTemplate.MailTemplateInstance |
MailTemplate.of(Mail mail) |
void |
Mailer.send(Mail... mails)
Sends the given mails.
|
CompletionStage<Void> |
ReactiveMailer.send(Mail... mails)
Sends the passed emails.
|
| Modifier and Type | Method and Description |
|---|---|
List<Mail> |
MockMailboxImpl.getMessagesSentTo(String address) |
| Modifier and Type | Method and Description |
|---|---|
MailTemplate.MailTemplateInstance |
MailTemplateInstanceImpl.mail(Mail mail) |
void |
BlockingMailerImpl.send(Mail... mails) |
CompletionStage<Void> |
ReactiveMailerImpl.send(Mail... mails) |
(package private) CompletionStage<Void> |
MockMailboxImpl.send(Mail email) |
Copyright © 2020 JBoss by Red Hat. All rights reserved.