@athenna/mail
Version:
The Athenna email handler. Built on top of nodemailer.
33 lines (32 loc) • 832 B
TypeScript
/**
* @athenna/mail
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { Macroable } from '@athenna/common';
import { SMTPServer, type SMTPServerOptions } from 'smtp-server';
export declare class SmtpServerImpl extends Macroable {
/**
* The SMTP server instance.
*/
server: SMTPServer;
/**
* Set if the SMTP server is listening.
*/
isListening: boolean;
/**
* Create the SMTP server instance.
*/
create(options?: SMTPServerOptions): SmtpServerImpl;
/**
* Start the SMTP server.
*/
listen(port?: number, host?: string, backlog?: number): Promise<void>;
/**
* Close the SMTP Server.
*/
close(): Promise<void>;
}