UNPKG

notification-services

Version:

Use email, sms and custom notification services for node.js application easily

46 lines (45 loc) 1.41 kB
import nodemailer from 'nodemailer'; import { SentMessageInfo } from 'nodemailer/lib/smtp-pool'; export declare const SMTPConfig: (host: string, user: string, pass: string, callback: { (res: any, err: any): void; (arg0: {} | null, arg1: Error | null): void; }) => void; export declare const SMTPSend: (transporter: nodemailer.Transporter<SentMessageInfo>, mailOptions: { from?: string; to?: string; cc?: string; bcc?: string; subject?: string; text?: string; html?: string; attachments?: []; }, template: boolean, callback: { (res: any, err: any): void; (arg0: {} | null, arg1: Error | null): void; }) => void; export declare const SMTPSendWithTemplate: (transporter: nodemailer.Transporter<SentMessageInfo>, mailOptions: { from?: string; to?: string; cc?: string; bcc?: string; subject?: string; text?: string; html?: string; attachments?: []; }, callback: { (res: any, err: any): void; (arg0: {} | null, arg1: Error | null): void; }) => void; export declare const SMTPSendWithoutTemplate: (transporter: nodemailer.Transporter<SentMessageInfo>, mailOptions: { from?: string; to?: string; cc?: string; bcc?: string; subject?: string; text?: string; html?: string; attachments?: []; }, callback: { (res: any, err: any): void; (arg0: {} | null, arg1: Error | null): void; }) => void;