@tanayvk/mailer
Version:
@adonisjs/mail without @adonisjs/core dependency.
21 lines (20 loc) • 792 B
TypeScript
import SES from '@aws-sdk/client-ses';
import NodeMailerTransport from 'nodemailer/lib/ses-transport/index.js';
import { MailResponse } from '../mail_response.js';
import type { SESConfig, NodeMailerMessage, MailTransportContract } from '../types.js';
/**
* SES transport uses the Nodemailer inbuilt transport for sending
* emails
*/
export declare class SESTransport implements MailTransportContract {
#private;
constructor(config: SESConfig);
/**
* Send message
*/
send(message: NodeMailerMessage, options?: Omit<SES.SendRawEmailRequest, 'RawMessage' | 'Source' | 'Destinations'>): Promise<MailResponse<NodeMailerTransport.SentMessageInfo>>;
/**
* Close transporter connection, helpful when using connections pool
*/
close(): Promise<void>;
}