public interface MailService extends MailClient
DEFAULT_POOL_NAME
Modifier and Type | Method and Description |
---|---|
void |
close()
close the MailClient
|
static MailService |
createEventBusProxy(Vertx vertx,
String address)
create a proxy of MailService that delegates to the mail service running somewhere else via the event bus
|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
create, createNonShared, createShared, createShared
static MailService createEventBusProxy(Vertx vertx, String address)
vertx
- the Vertx instance the proxy will be run inaddress
- the eb address of the mail service running somewhere, default is "vertx.mail"MailService sendMail(MailMessage email, Handler<AsyncResult<MailResult>> resultHandler)
MailClient
sendMail
in interface MailClient
email
- MailMessage object containing the mail text, from/to, attachments etcresultHandler
- will be called when the operation is finished or it fails
(may be null to ignore the result)void close()
MailClient
close
in interface MailClient
Copyright © 2023 Eclipse. All rights reserved.