mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
send sign request, sign status
This commit is contained in:
@ -16,7 +16,7 @@ export const sendMail = async (
|
||||
);
|
||||
|
||||
await transport.sendMail({
|
||||
from: process.env.SENDGRID_API_KEY,
|
||||
from: process.env.MAIL_FROM,
|
||||
to: to,
|
||||
subject: subject,
|
||||
html: htmlFormattedMessage,
|
||||
|
||||
@ -3,8 +3,7 @@ import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib/constants";
|
||||
|
||||
export const sendSignedMail = async (document: any, recipient: any) => {
|
||||
// todo check if recipient has an account
|
||||
|
||||
sendMail(
|
||||
await sendMail(
|
||||
document.user.email,
|
||||
`${recipient.email} signed ${document.title}`,
|
||||
`Hi ${document.user.name}, ${recipient.email} has signed your document ${document.title}. Click <a href="${NEXT_PUBLIC_WEBAPP_URL}/document/${document.id}"> VIEW DOCUMENT</a> to view it now.`
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
import { sendMail } from "./sendMail";
|
||||
|
||||
export const sendSigningRequestMail = async (recipient: any, document: any) => {
|
||||
sendMail(
|
||||
await 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.`
|
||||
`${document.User.name} has sent you a document to sign. Click <b><a href="${process.env.NEXT_PUBLIC_WEBAPP_URL}/documents/${document.id}/sign">SIGN DOCUMENT</a></b> to sign it now.`
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user