Skip to main content

Transport Options

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

Signature

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.

The SES transport options of Nodemailer

See Nodemailers's SES docs for more details

Example

Ts
Signature
  • Extends: SESTransport.Options

type

property'ses'

Uses the local Sendmail program to send the email.

Signature

type

property'sendmail'

path

propertystring

newline

propertystring

Outputs the email as an HTML file for development purposes.

Signature

type

property'file'

outputPath

propertystring

raw

propertyboolean

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'

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 Feb 23, 2026ยทEdit this page