add organizer as reply-to email (#5203)
Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
2 files changed
+3
No files matched your search
@@ -154,6 +154,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
html: emailContent.emailBody.html,
|
||||
batchId: batchId,
|
||||
sendAt: dayjs(reminder.scheduledDate).unix(),
|
||||
replyTo: reminder.booking?.user?.email || senderEmail,
|
||||
});
|
||||
|
||||
await prisma.workflowReminder.update({
|
||||
|
||||
@@ -130,6 +130,7 @@ export const scheduleEmailReminder = async (
|
||||
text: emailContent.emailBody.text,
|
||||
html: emailContent.emailBody.html,
|
||||
batchId: batchIdResponse[1].batch_id,
|
||||
replyTo: evt.organizer.email,
|
||||
});
|
||||
} catch (error) {
|
||||
console.log("Error sending Email");
|
||||
@@ -154,6 +155,7 @@ export const scheduleEmailReminder = async (
|
||||
html: emailContent.emailBody.html,
|
||||
batchId: batchIdResponse[1].batch_id,
|
||||
sendAt: scheduledDate.unix(),
|
||||
replyTo: evt.organizer.email,
|
||||
});
|
||||
|
||||
await prisma.workflowReminder.create({
|
||||
|
||||
Reference in new issue
Block a user