Package: io.vertx.groovy.ext.mail

## [Groovy] Class MailService

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

- Authors:
    Tim Fox

- - ### Constructor Summary

    Constructors
    Constructor and description
    `MailService (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `close()`
    `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
    `Object` | `getDelegate()`
    `MailService` | `sendMail(Map<String, Object> email = [:], Handler<AsyncResult<Map<String, Object>>> resultHandler)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class MailClient` | `close, createNonShared, createShared, createShared, getDelegate, sendMail`

- - ### Constructor Detail

    - #### MailService(Object delegate)

  - ### Method Detail

    - #### void close()

    - #### 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

      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"

    - #### Object getDelegate()

    - #### MailService sendMail(Map<String, Object> email = [:], Handler<AsyncResult<Map<String, Object>>> resultHandler)