MailConfig

represents the configuration of a mail service with mail server hostname, port, security options, login options and login/password
Name Type Description

hostname

String

Set the hostname of the smtp server.

port

Number

Set the port of the smtp server.

username

String

Set the username for the login.

password

String

Set the password for the login.

ssl

Boolean

Set the sslOnConnect mode for the connection.

trustAll

Boolean

set whether to trust all certificates on ssl connect the option is also applied to STARTTLS operation

netClientOptions

NetClientOptions

set the NetClientOptions to be used when opening SMTP connections

if not set, an options object will be created based on other settings (ssl and trustAll)

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

String

set the hostname to be used for HELO/EHLO and the Message-ID

maxPoolSize

Number

set the max allowed number of open connections to the mail server if not set the default is 10

idleTimeout

Number

set the timeout for idle smtp connections (in seconds) if not set, the default is 300 seconds

keepAlive

Boolean

set if connection pool is enabled default is true

if the connection pooling is disabled, the max number of sockets is enforced nevertheless