mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-06-20 14:19:46 -05:00
Fix replyTo contact form regression
This commit is contained in:
parent
8075fe3123
commit
ff09aa42d7
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user