UNPKG

nestjs-mailable

Version:

A comprehensive NestJS mail package with design patterns for email handling, templating, and multi-provider support

19 lines (18 loc) 907 B
import { Content } from '../interfaces/mail.interface'; export declare abstract class Mailable { protected content: Content; protected view(template: string, context?: Record<string, unknown>): this; protected with(key: string, value: unknown): this; protected with(data: Record<string, unknown>): this; protected subject(subject: string): this; protected from(address: string, name?: string): this; protected replyTo(address: string, name?: string): this; protected attach(path: string, options?: Record<string, unknown>): this; protected attachData(data: Buffer | string, filename: string, options?: Record<string, unknown>): this; protected header(key: string, value: string): this; protected tag(tag: string): this; protected metadata(key: string, value: unknown): this; protected build(): Content; getContent(): Content; render(): Content; }