TestingTransportOptions

TestingTransportOptions

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

Signature

interface TestingTransportOptions {
  type: 'testing';
  onSend: (details: EmailDetails) => void;
}

Members

type

property
type:
'testing'

onSend

property
type:
(details: EmailDetails) => void

Callback to be invoked when an email would be sent.