UNPKG

reshuffle

Version:

Reshuffle is a fast, unopinionated, minimalist integration framework

30 lines (29 loc) 817 B
/// <reference types="node" /> import { BaseConnector } from 'reshuffle-base-connector'; import { SentMessageInfo } from 'nodemailer'; export interface SMTPConnectorOptions { fromName: string; fromEmail: string; host: string; port: number; username: string; password?: string; } interface Attachment { filename: string; content: Buffer; } interface EmailMessage { to: string; subject: string; html: string; attachments?: Attachment[]; } declare class SMTPConnector extends BaseConnector<SMTPConnectorOptions> { private transporter; private from; constructor(options: SMTPConnectorOptions, id: string); updateOptions(options: SMTPConnectorOptions): void; send(message: EmailMessage): Promise<SentMessageInfo | undefined>; } export { SMTPConnector };