UNPKG

@c1x/nest-mailer

Version:

A flexible and easy-to-use mailer module for NestJS applications, supporting multiple email providers including SMTP, AWS SES, and SendGrid.

28 lines (27 loc) 605 B
export interface MailerConfig { provider: 'smtp' | 'aws-ses' | 'sendgrid'; credentials: SmtpConfig | AwsSesConfig | SendGridConfig; templatesDir?: string; defaultFrom?: string; defaultReplyTo?: string; } export declare class SmtpConfig { host: string; port: number; secure: boolean; auth: { user: string; pass: string; }; } export interface AwsSesConfig { accessKeyId: string; secretAccessKey: string; region: string; } export interface SendGridConfig { apiKey: string; } export interface TemplateContext { [key: string]: any; }