# Module: vertx-mail-js/mail_client

## vertx-mail-js/mail_client

Source:
  - mail_client.js, line 3

### Classes

MailClient

### Methods

#### <static> MailClient.createNonShared(vertx, config) → {MailClient}

  create a non shared instance of the mail client

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `vertx` | Vertx | the Vertx instance the operation will be run in
  `config` | Object | MailConfig configuration to be used for sending mails

  Source:
    - mail_client.js, line 89

  ##### Returns:

  MailClient instance that can then be used to send multiple mails
  Type
    MailClient

#### <static> MailClient.createShared(vertx, config, poolName) → {MailClient}

  Create a Mail client which shares its data source with any other Mongo clients created with the same pool name

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `vertx` | Vertx | the Vert.x instance
  `config` | Object | the configuration
  `poolName` | string | the pool name

  Source:
    - mail_client.js, line 106

  ##### Returns:

  the client
  Type
    MailClient