An array of attachment objects
defines preferred authentication method, e.g. ‘PLAIN’
Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field
Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field
connected socket to use instead of creating and connecting a new one. If secure option is true, then socket is upgraded from plaintext to ciphertext
how many milliseconds to wait for the connection to establish
optional Date value, current UTC string will be used if not set
if set to true, then logs SMTP traffic and message content, otherwise logs only transaction events
if set to true then fails with an error when a node tries to load content from a file
if set to true then fails with an error when a node tries to load content from URL
is an object with DKIM options
optional transfer encoding for the textual parts
optional SMTP envelope, if auto generated envelope is not suitable
The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name sender@server.com'
how many milliseconds to wait for the greeting after connection is established
An object or array of additional header fields
the hostname or IP address to connect to (defaults to ‘localhost’)
The HTML version of the message
iCalendar event, same usage as with text and html. Event method attribute defaults to ‘PUBLISH’ or define it yourself: {method: 'REQUEST', content: iCalString}. This value is added as an additional alternative to html or text. Only utf-8 content is allowed
turns off STARTTLS support if true
The message-id this message is replying
An object where key names are converted into list headers. List key help becomes List-Help header etc.
the local interface to bind to for network connections
optional bunyan compatible logger instance. If set to true then logs to console. If value is not set or is false then nothing is logged
optional Message-Id value, random value will be generated if not set
optional hostname of the client, used for identifying to the server
tries to use STARTTLS and continues normally if it fails
the port to connect to (defaults to 25 or 465)
if set then overwrites entire message output with this value. The value is not parsed, so you should still set address headers or the envelope value for the message to work
Message-id list (an array or space separated string)
An e-mail address that will appear on the Reply-To: field
forces the client to use STARTTLS. Returns an error if upgrading the connection is not possible or fails.
defines if the connection should use SSL (if true) or not (if false)
An e-mail address that will appear on the Sender: field
initialized socket to use instead of creating a new one
how many milliseconds of inactivity to allow
The subject of the e-mail
The plaintext version of the message
set explicitly which encoding to use for text parts (quoted-printable or base64). If not set then encoding is detected from text content (mostly ascii means quoted-printable, otherwise base64)
defines additional options to be passed to the socket constructor, e.g. {rejectUnauthorized: true}
Comma separated list or an array of recipients e-mail addresses that will appear on the To: field
if set to true, then logs SMTP traffic without message content
Apple Watch specific HTML version of the message, same usage as with text and html
method to normalize header keys for custom caseing
Generated using TypeDoc
An array of alternative text contents (in addition to text and html parts)