@ApplicationScoped public class ReactiveMailerImpl extends Object implements ReactiveMailer
Modifier and Type | Field and Description |
---|---|
(package private) io.vertx.axle.ext.mail.MailClient |
client |
(package private) MockMailboxImpl |
mockMailbox |
(package private) io.vertx.axle.core.Vertx |
vertx |
Constructor and Description |
---|
ReactiveMailerImpl() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
configure(Optional<String> from,
Optional<String> bounceAddress,
boolean mock) |
static CompletionStage<io.vertx.core.buffer.Buffer> |
getAttachmentStream(io.vertx.axle.core.Vertx vertx,
Attachment attachment) |
CompletionStage<Void> |
send(Mail... mails)
Sends the passed emails.
|
@Inject io.vertx.axle.ext.mail.MailClient client
@Inject io.vertx.axle.core.Vertx vertx
@Inject MockMailboxImpl mockMailbox
public CompletionStage<Void> send(Mail... mails)
ReactiveMailer
send
in interface ReactiveMailer
mails
- the emails to send, must not be null
CompletionStage
indicating when the mails have been sent. The CompletionStage
may be
completed with a failure if the emails cannot be sent.public static CompletionStage<io.vertx.core.buffer.Buffer> getAttachmentStream(io.vertx.axle.core.Vertx vertx, Attachment attachment)
Copyright © 2019 JBoss by Red Hat. All rights reserved.