nodemailer and sendgrid integration

This commit is contained in:
Timur Ercan
2023-01-26 16:20:48 +01:00
parent cb665c49d4
commit 58fb62b94b
6 changed files with 54 additions and 3 deletions

View File

@ -0,0 +1,9 @@
import { sendMail } from "./sendMail";
export const sendSigningRequestMail = async (recipient: any, document: any) => {
sendMail(
recipient.email,
`Please sign ${document.title}`,
`${document.user.name} has sent you a document to sign. Click <b><a href="https">SIGN DOCUMENT</a></b> to sign it now.`
);
};