unemail
Version:
A modern TypeScript email library with zero dependencies, supporting multiple providers including AWS SES, Resend, MailCrab, and HTTP APIs
40 lines (36 loc) • 1.22 kB
text/typescript
import { EmailOptions, AwsSesConfig } from 'unemail/types';
import { ProviderFactory } from './base.mjs';
/**
* AWS SES-specific email options
*/
interface AwsSesEmailOptions extends EmailOptions {
/**
* Configuration ID for sending via a specific AWS SES configuration set
* @see https://docs.aws.amazon.com/ses/latest/APIReference/API_SendEmail.html#API_SendEmail_RequestParameters
*/
configurationSetName?: string;
/**
* Custom message tags for classification
* @see https://docs.aws.amazon.com/ses/latest/APIReference/API_MessageTag.html
*/
messageTags?: Record<string, string>;
/**
* Source ARN for sending authorization
* @see https://docs.aws.amazon.com/ses/latest/APIReference/API_SendEmail.html#API_SendEmail_RequestParameters
*/
sourceArn?: string;
/**
* Return path for bounces
*/
returnPath?: string;
/**
* Return path ARN
*/
returnPathArn?: string;
}
/**
* AWS SES Email Provider Implementation - Zero dependency version
* Uses native Node.js APIs instead of AWS SDK
*/
declare const awsSesProvider: ProviderFactory<AwsSesConfig, any, AwsSesEmailOptions>;
export { awsSesProvider as default };