Fix Resend reply-to field for contact emails
This commit is contained in:
@@ -99,7 +99,7 @@ app.post('/api/contact', contactRateLimit, async (req, res) => {
|
||||
const { error } = await resend.emails.send({
|
||||
from: process.env.RESEND_FROM ?? 'Verse by Verse <onboarding@resend.dev>',
|
||||
to: [process.env.RESEND_TO ?? 'vbvwithnate@outlook.com'],
|
||||
reply_to: `${name.trim()} <${email.trim()}>`,
|
||||
replyTo: email.trim(),
|
||||
subject: `New message from Verse by Verse website — ${name.trim()}`,
|
||||
text: `Name: ${name.trim()}\nEmail: ${email.trim()}\n\nMessage:\n${message.trim()}`,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user