import nodemailer from "nodemailer"; import type SMTPTransport from "nodemailer/lib/smtp-transport/index.js"; import type { App } from "../main.js"; import Mailer from "./mailer.js"; import type { MessageData } from "./message.js"; export default class SmtpMailer extends Mailer { mail_config: { from_name: string; from_address: string; }; transport: nodemailer.Transporter; constructor(config: { host: string; port: number; user: string; password: string; }, additional_options?: SMTPTransport.Options); verify(): Promise; init(app: App): Promise; sendEmail({ to, subject, text, html, from_name, attachments, replyTo, }: MessageData & { from_name: string; }): Promise; static default_config: { host: null; port: null; user: null; password: null; }; }