Add replyto option
This commit is contained in:
@@ -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,
|
||||
|
@@ -81,6 +81,7 @@ async function executeEmail(
|
||||
to: email.to,
|
||||
from: email.from,
|
||||
subject: email.subject,
|
||||
replyTo: email.replyTo ?? undefined,
|
||||
text: email.text ?? undefined,
|
||||
html: email.html ?? undefined,
|
||||
region: domain?.region ?? env.AWS_DEFAULT_REGION,
|
||||
|
Reference in New Issue
Block a user