Package: io.vertx.groovy.ext.mail

## [Groovy] Class MailService

- io.vertx.groovy.ext.mail.MailService

- - ### Constructor Summary

    Constructors
    Constructor and description
    `MailService (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `close()`
    `static MailService` | `createEventBusProxy(Vertx vertx, java.lang.String address)` create a proxy of MailService that delegates to the mail service running somewhere else via the event bus
    `java.lang.Object` | `getDelegate()`
    `MailService` | `sendMail(java.util.Map<java.lang.String, java.lang.Object> email = [:], io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<java.lang.String, java.lang.Object>>> resultHandler)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class MailClient` | `close, createNonShared, createShared, createShared, getDelegate, sendMail`
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### MailService(java.lang.Object delegate)

  - ### Method Detail

    - #### void close()

    - #### static MailService createEventBusProxy(Vertx vertx, java.lang.String address)

      create a proxy of MailService that delegates to the mail service running somewhere else via the event bus

      Returns:
        MailService instance that can then be used to send multiple mails
      Parameters:
        `vertx` - the Vertx instance the proxy will be run in
        `address` - the eb address of the mail service running somewhere, default is "vertx.mail"

    - #### java.lang.Object getDelegate()

    - #### MailService sendMail(java.util.Map<java.lang.String, java.lang.Object> email = [:], io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<java.lang.String, java.lang.Object>>> resultHandler)