react-email-sender-adapters
Version:
A unified interface for sending react-email emails across multiple email services.
25 lines (24 loc) • 707 B
TypeScript
/// <reference types="node" resolution-mode="require"/>
export type MailContact = {
name?: string;
email: string;
} | string;
export type MailContacts = MailContact | Array<MailContact>;
export type Attachment = {
contentType: string;
filename: string;
content: Buffer | ArrayBuffer | string;
};
export type DefaultEmailOptions = {
useConsoleLogInDevMode: boolean;
};
export declare const defaultEmailOptions: DefaultEmailOptions;
export type EmailOptions<T = {}> = T & Partial<DefaultEmailOptions> & {
subject: string;
from: MailContact;
to: MailContacts;
cc?: MailContacts;
bcc?: MailContacts;
replyTo?: MailContact;
attachments?: Array<Attachment>;
};