UNPKG

@timshel_npm/maildev

Version:

SMTP Server with async API and Web Interface for viewing and testing emails during development

41 lines (40 loc) 1.02 kB
export interface OutgoingOptions { host?: string; port?: number; secure?: boolean; auth?: { user: string; pass: string; }; autoRelayAddress?: string; autoRelayRules?: string | { allow?: string; deny?: string; }[]; } export declare class Outgoing { port: number; host: string; secure: boolean; autoRelay: boolean; autoRelayAddress: string | undefined; autoRelayRules: { allow?: string; deny?: string; }[] | undefined; auth: { user: string; pass: string; } | undefined; client: any; emailQueue: any; constructor(options?: OutgoingOptions); getOutgoingHost(): string; close(): void; setAutoRelayMode(enabled: boolean, emailAddress: string | undefined, rules: { allow?: string; deny?: string; }[] | string | undefined): void; isAutoRelayEnabled(): boolean; relayMail(emailObject: any, emailStream: any, isAutoRelay: any, callback: any): void; }