@krypton-org/krypton-auth
Version:
Express authentication middleware, using GraphQL and JSON Web Tokens.
20 lines (19 loc) • 554 B
TypeScript
/**
* Module defining the send email function according to the configuration passed by package users in `emailConfig`.
* @module mailer/Mailer;'
*/
import { SentMessageInfo } from 'nodemailer';
export interface Email {
recipient: string;
subject: string;
locals?: any;
template: string;
from: string;
clientId: string;
}
/**
* Function to send an email.
* @param {Email} email
* @returns {Promise<SentMessageInfo>} Promise to the send message info.
*/
export default function send(email: Email): Promise<SentMessageInfo>;