Fix replyTo contact form regression

This commit is contained in:
Jared Schoeny 2026-06-12 23:49:01 -06:00
parent 8075fe3123
commit ff09aa42d7
2 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ export async function sendContact(prev: ContactActionState, formData: FormData):
await sendTransactionalEmail({
to: email,
replyTo: email,
subject: `[#${ticketId}] Support request confirmation`,
text: confirmationMessage,
});

View File

@ -18,6 +18,7 @@ export const createMailTransporter = () => {
interface SendTransactionalEmailBase {
to: string;
subject: string;
replyTo?: string;
}
interface SendTransactionalEmailWithHtml extends SendTransactionalEmailBase {
@ -36,6 +37,7 @@ export const sendTransactionalEmail = async (args: SendTransactionalEmailWithHtm
await transporter.sendMail({
from: `Hackdex <${noreply}>`,
to: args.to,
replyTo: args.replyTo,
subject: args.subject,
html: "html" in args ? args.html : undefined,
text: "text" in args ? args.text : undefined,