contact-us turnstile

This commit is contained in:
Dex404 2024-04-24 09:22:06 +00:00
parent 6833f213d1
commit 2bbda36300
3 changed files with 100 additions and 77 deletions

View file

@ -20,12 +20,13 @@ export async function POST(req: any) {
const plainTextContent = stripHTMLTags(htmlContent)
try {
await transporter.sendMail({
...mailOptions,
subject: `Contact Inquiry - VizoleLabs Web`,
text: plainTextContent,
html: htmlContent,
})
console.log(req.headers)
// await transporter.sendMail({
// ...mailOptions,
// subject: `Contact Inquiry - VizoleLabs Web`,
// text: plainTextContent,
// html: htmlContent,
// })
return NextResponse.json({ success: true })
} catch (error: any) {
console.error(error)