IO-2933 Add in email for succesful postback from Short URL.

This commit is contained in:
Patrick Fic
2024-09-16 16:02:19 -07:00
parent cbc164dbeb
commit 2a33f462a3
6 changed files with 65 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ const sendServerEmail = async ({ subject, text }) => {
}
};
const sendTaskEmail = async ({ to, subject, text, attachments }) => {
const sendTaskEmail = async ({ to, subject, type = "text", html, text, attachments }) => {
try {
transporter.sendMail(
{
@@ -107,7 +107,7 @@ const sendTaskEmail = async ({ to, subject, text, attachments }) => {
}),
to: to,
subject: subject,
text: text,
...(type === "text" ? { text } : { html }),
attachments: attachments || null
},
(err, info) => {