public class MailClientImpl extends Object implements MailClient
DEFAULT_POOL_NAME| Constructor and Description |
|---|
MailClientImpl(Vertx vertx,
MailConfig config,
String poolName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the MailClient
|
MailClient |
sendMail(MailMessage message,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createNonShared, createShared, createSharedpublic MailClientImpl(Vertx vertx, MailConfig config, String poolName)
public void close()
MailClientclose in interface MailClientpublic MailClient sendMail(MailMessage message, Handler<AsyncResult<MailResult>> resultHandler)
MailClientsendMail in interface MailClientmessage - 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)Copyright © 2020. All rights reserved.