Skip to main content

Transport Options

EmailTransportOptions

A union of all the possible transport options for sending emails.

Signature

SMTPTransportOptions

The SMTP transport options of Nodemailer

Signature
  • Extends: SMTPTransport.Options

type

property'smtp'

logging

propertyboolean
Default:false

If true, uses the configured VendureLogger to log messages from Nodemailer as it interacts with the SMTP server.

pool

propertyboolean
Default:false

Set to true to use a pooled connection (defaults to false) instead of creating a new connection for every email. Nodemailer pooled-SMTP option, forwarded directly to nodemailer.createTransport().

maxConnections

propertySMTPPool.Options['maxConnections']
Default:5

The maximum number of simultaneous connections to make against the SMTP server. Only applies when pool is true.

maxMessages

propertySMTPPool.Options['maxMessages']
Default:100

Limits the number of messages sent over a single connection. After maxMessages is reached the connection is dropped and a new one is created. Only applies when pool is true.

rateDelta

propertySMTPPool.Options['rateDelta']
Default:1000

Defines the time measuring period in milliseconds for rate limiting. Only applies when pool is true.

rateLimit

propertySMTPPool.Options['rateLimit']

Limits the number of messages sent in the rateDelta window. Once reached, sending is paused until the end of the period. Only applies when pool is true.

SESTransportOptions

The SES transport options of Nodemailer

See Nodemailers's SES docs for more details

Example

Ts
Signature
  • Extends: SESTransport.Options

type

property'ses'

SendmailTransportOptions

Uses the local Sendmail program to send the email.

Signature

type

property'sendmail'

path

propertystring

newline

propertystring

FileTransportOptions

Outputs the email as an HTML file for development purposes.

Signature

type

property'file'

outputPath

propertystring

raw

propertyboolean

NoopTransportOptions

Does nothing with the generated email. Intended for use in testing where we don't care about the email transport, or when using a custom EmailSender which does not require transport options.

Signature

type

property'none'

TestingTransportOptions

Forwards the raw GeneratedEmailContext object to a provided callback, for use in testing.

Signature

type

property'testing'

onSend

property(details: EmailDetails) => void

Callback to be invoked when an email would be sent.

Was this chapter helpful?
Report Issue
Edited Jun 24, 2026·Edit this page