import { BaseAccount, MessengerClient } from "./MessengerClient"; import { Transporter } from "nodemailer"; import SMTPTransport from "nodemailer/lib/smtp-transport"; import { Attachment } from "../types"; export interface SMTPAccount extends BaseAccount> { options: { /** * Default sender email address */ defaultSender: string; }; } export declare class SMTPClient extends MessengerClient { constructor(); /** * Sends an email using one of the registered accounts. * * @param accountName Account name * @param to Recipient email(s) * @param subject Email subject * @param html Email content * @param options.from Sender email */ sendEmail(accountName: string, to: string[], subject: string, html: string, { attachments, from }?: { attachments?: Attachment[]; from?: string; }): Promise; /** * Adds an account to send email with. * * @param name Account name * @param host SMTP server host * @param port SMTP server port * @param user SMTP server username * @param pass SMTP server password * @param defaultSender Default sender email address */ addAccount(name: string, host: string, port: number, user: string, pass: string, defaultSender: string): void; protected _createAccount(name: any, host: string, port: number, user: string, pass: string, defaultSender: string): SMTPAccount; private sendMessage; }