Transport Options
A union of all the possible transport options for sending emails.
The SMTP transport options of Nodemailer
- Extends: SMTPTransport.Options
type
property
'smtp'logging
property
booleanDefault:
falseIf 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
- Extends: SESTransport.Options
Uses the local Sendmail program to send the email.
Outputs the email as an HTML file for development purposes.
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.
Forwards the raw GeneratedEmailContext object to a provided callback, for use in testing.
type
property
'testing'onSend
property
(details: EmailDetails) => voidCallback to be invoked when an email would be sent.
Was this chapter helpful?