@454creative/easy-email
Version:
A framework-agnostic email service library for Node.js with observability and monitoring
56 lines • 1.34 kB
TypeScript
import { EmailOptions, EmailResponse, SesConfig } from '../interfaces/email-options.interface';
/**
* SES Email Service Implementation
* Handles email sending through AWS SES with comprehensive error handling
*/
export declare class SesService {
private client;
private config;
private observability;
constructor(config: SesConfig);
/**
* Create SES client with proper configuration
*/
private createSesClient;
/**
* Send email using SES
*/
sendEmail(options: EmailOptions): Promise<EmailResponse>;
/**
* Build SES SendEmailCommand from EmailOptions
*/
private buildSendEmailCommand;
/**
* Build message body for SES
*/
private buildMessageBody;
/**
* Format email address for SES
*/
private formatEmailAddress;
/**
* Format recipients for SES
*/
private formatRecipients;
/**
* Handle SES-specific errors
*/
private handleSesError;
/**
* Verify SES connection
*/
verifyConnection(): Promise<boolean>;
/**
* Get SES sending statistics
*/
getSendingStatistics(): Promise<any>;
/**
* Get SES sending quota
*/
getSendingQuota(): Promise<any>;
/**
* Destroy SES client
*/
destroy(): void;
}
//# sourceMappingURL=ses.service.d.ts.map