UNPKG

@adonisjs/mail

Version:

Mail provider for adonis framework and has support for all common mailing services to send emails

20 lines (19 loc) 680 B
import type NodemailerTransport from 'nodemailer/lib/smtp-transport/index.js'; import { MailResponse } from '../mail_response.js'; import type { SMTPConfig, NodeMailerMessage, MailTransportContract } from '../types.js'; /** * SMTP transport uses the Nodemailer inbuilt transport for sending * emails */ export declare class SMTPTransport implements MailTransportContract { #private; constructor(config: SMTPConfig); /** * Send message */ send(message: NodeMailerMessage): Promise<MailResponse<NodemailerTransport.SentMessageInfo>>; /** * Close transporter connection, helpful when using connections pool */ close(): Promise<void>; }