== MailConfig

++++
 represents the configuration of a mail service with mail server hostname,
 port, security options, login options and login/password
++++
'''

[cols=">25%,^25%,50%"]
[frame="topbot"]
|===
^|Name | Type ^| Description

|[[hostname]]`hostname`
|`String`
|+++
Set the hostname of the smtp server.+++

|[[port]]`port`
|`Number`
|+++
Set the port of the smtp server.+++

|[[username]]`username`
|`String`
|+++
Set the username for the login.+++

|[[password]]`password`
|`String`
|+++
Set the password for the login.+++

|[[ssl]]`ssl`
|`Boolean`
|+++
Set the sslOnConnect mode for the connection.+++

|[[trustAll]]`trustAll`
|`Boolean`
|+++
set whether to trust all certificates on ssl connect the option is also
 applied to STARTTLS operation+++

|[[keyStore]]`keyStore`
|`String`
|+++
get the key store filename to be used when opening SMTP connections
 <p>
 if not set, an options object will be created based on other settings (ssl
 and trustAll)+++

|[[keyStorePassword]]`keyStorePassword`
|`String`
|+++
get the key store password to be used when opening SMTP connections+++

|[[authMethods]]`authMethods`
|`String`
|+++
set string of allowed auth methods.
 if set only these methods will be used
 if the server supports them. If null or empty all supported methods may be
 used+++

|[[ownHostname]]`ownHostname`
|`String`
|+++
set the hostname to be used for HELO/EHLO and the Message-ID+++

|[[maxPoolSize]]`maxPoolSize`
|`Number`
|+++
set the max allowed number of open connections to the mail server
 if not set the default is 10+++

|[[idleTimeout]]`idleTimeout`
|`Number`
|+++
set the timeout for idle smtp connections (in seconds)
 if not set, the default is 300 seconds+++

|[[keepAlive]]`keepAlive`
|`Boolean`
|+++
set if connection pool is enabled
 default is true
<p>
 if the connection pooling is disabled, the max number of sockets is enforced nevertheless
<p>+++

|[[allowRcptErrors]]`allowRcptErrors`
|`Boolean`
|+++
set if sending allows rcpt errors+++
|===
