feat(template): add initial signing invite email template

This commit is contained in:
Ephraim Atta-Duncan
2023-06-19 21:33:04 +00:00
parent bc11abda08
commit 590344f793
3 changed files with 124 additions and 6 deletions

View File

@ -1,6 +1,8 @@
import nodemailer from 'nodemailer';
import nodemailerSendgrid from 'nodemailer-sendgrid';
import { emailHtml, emailText } from '../../mail/template';
export const sendMail = async ({ email }: { email: string }) => {
let transporter;
@ -33,7 +35,7 @@ export const sendMail = async ({ email }: { email: string }) => {
from: 'Documenso <hi@documenso.com>',
to: email,
subject: 'Welcome to Documenso!',
text: 'Welcome to Documenso!',
html: '<p>Welcome to Documenso!</p>',
text: emailText,
html: emailHtml,
});
};