@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
17 lines (16 loc) • 528 B
TypeScript
import { SendMailOptions } from 'nodemailer';
import { MailManager } from './manager';
type Attachments = NonNullable<SendMailOptions['attachments']>;
export declare class MailBuilder {
private manager;
private message;
constructor(manager: MailManager);
from(from: string): this;
to(to: string): this;
subject(subject: string): this;
html(html: string): this;
attachments(attachments: Attachments): this;
attachment(attachment: Attachments[0]): this;
send(): Promise<void>;
}
export {};