Skip to content

Function: writeOutboxEmail()

writeOutboxEmail(message, from, dir, brand?, presentation?): Promise<string>

Write one message as HTML under <dir>/<from>/ and return the absolute path. The per-sender folder mirrors the SMTP From, so test output groups by who the message would have been sent as.

object[] = ...

string[] = ...

string = ...

string[] = ...

string = ...

string[] = ...

string

string

EmailBrand

Pick<EmailDocumentProps, "heading" | "preview">

Promise<string>