Add replyto option

This commit is contained in:
KMKoushik
2024-05-16 07:18:44 +10:00
parent 2b77ef3413
commit 3df022f6b2
8 changed files with 16 additions and 3 deletions

View File

@@ -6,7 +6,8 @@ import { queueEmail } from "./job-service";
export async function sendEmail(
emailContent: EmailContent & { teamId: number }
) {
const { to, from, subject, text, html, teamId, attachments } = emailContent;
const { to, from, subject, text, html, teamId, attachments, replyTo } =
emailContent;
const fromDomain = from.split("@")[1];
@@ -34,6 +35,7 @@ export async function sendEmail(
to,
from,
subject,
replyTo,
text,
html,
teamId,