diff --git a/lib/interfaces/send-mail-options.interface.ts b/lib/interfaces/send-mail-options.interface.ts index 718a280b..a2a13810 100644 --- a/lib/interfaces/send-mail-options.interface.ts +++ b/lib/interfaces/send-mail-options.interface.ts @@ -1,6 +1,31 @@ import { SendMailOptions } from 'nodemailer'; +export type TextEncoding = 'quoted-printable' | 'base64'; +export type Headers = + | { [key: string]: string | string[] | { prepared: boolean; value: string } } + | Array<{ key: string; value: string }>; + +export interface Address { + name: string; + address: string; +} + export interface ISendMailOptions extends SendMailOptions { + to?: string | Address | Array; + cc?: string | Address | Array; + replyTo?: string | Address; + inReplyTo?: string | Address; + from?: string | Address; + subject?: string; + text?: string | Buffer; + html?: string | Buffer; + sender?: string | Address; + raw?: string | Buffer; + textEncoding?: TextEncoding; + references?: string | string[]; + encoding?: string; + date?: Date | string; + headers?: Headers; context?: { [name: string]: any; };