mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 03:06:40 +00:00
Send reply to email in support requests
This commit is contained in:
@@ -10,6 +10,7 @@ export async function sendEmail(
|
|||||||
from: string | undefined;
|
from: string | undefined;
|
||||||
to: string | undefined;
|
to: string | undefined;
|
||||||
subject: string;
|
subject: string;
|
||||||
|
replyTo?: string;
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
if (!emailClient) {
|
if (!emailClient) {
|
||||||
@@ -32,6 +33,7 @@ export async function sendEmail(
|
|||||||
address: opts.from
|
address: opts.from
|
||||||
},
|
},
|
||||||
to: opts.to,
|
to: opts.to,
|
||||||
|
replyTo: opts.replyTo,
|
||||||
subject: opts.subject,
|
subject: opts.subject,
|
||||||
html: emailHtml
|
html: emailHtml
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export async function sendSupportEmail(
|
|||||||
{
|
{
|
||||||
name: req.user?.email || "Support User",
|
name: req.user?.email || "Support User",
|
||||||
to: "support@pangolin.net",
|
to: "support@pangolin.net",
|
||||||
|
replyTo: req.user?.email || undefined,
|
||||||
from: config.getNoReplyEmail(),
|
from: config.getNoReplyEmail(),
|
||||||
subject: `Support Request: ${subject}`
|
subject: `Support Request: ${subject}`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user