export type Attachment = { content: Buffer | string; filename: string; mimeType: string; /** If set and content is string, then encodes the content to a Buffer using the specified encoding */ encoding?: 'base64'; }; export type Content = { subject?: string; html: string; plain?: string; attachments?: Attachment[]; }; export type MailContentOptions = { htmlPath: string; plain?: string; plainPath?: string; subject?: string; subjectPath?: string; attachments?: Attachment[]; };