@timshel_npm/maildev
Version:
SMTP Server with async API and Web Interface for viewing and testing emails during development
34 lines (33 loc) • 676 B
TypeScript
/**
* MailDev - web
*/
import { MailServer } from "./mailserver";
export interface WebOptions {
port?: number;
host?: string;
basePathname?: string;
domain?: string;
auth?: {
user: string;
pass: string;
};
ssl?: {
cert: string;
key: string;
};
}
export declare class Web {
protocol: string;
port: number;
host: string;
basePathname: string;
/**
* Keep record of all connections to close them on shutdown
*/
connections: {};
server: any;
io: any;
constructor(mailserver: MailServer, options?: WebOptions);
listen(): Promise<void>;
close(): Promise<void>;
}