mandrill-nodemailer-transport
Version:
Mandrill API and Nodemailer v4+. The plugin is very small, optimized and written in TypeScript
30 lines (29 loc) • 864 B
TypeScript
/// <reference types="node" />
import type { SendMailOptions } from 'nodemailer';
interface To {
email: string;
name?: string;
type?: 'to' | 'cc' | 'bcc';
}
interface Attachments {
type: string;
name: string;
content: string;
}
export declare namespace Mandrill {
const buildData: (data: SendMailOptions, key: string) => {
key: string;
message: {
html: string | Buffer | import("stream").Readable | import("nodemailer/lib/mailer").AttachmentLike;
text: string | Buffer | import("stream").Readable | import("nodemailer/lib/mailer").AttachmentLike;
subject: string;
from_email: string;
from_name: string;
to: To[];
headers: Object;
attachments: Attachments[];
images: Attachments[];
};
};
}
export {};