contact-us turnstile
This commit is contained in:
parent
6833f213d1
commit
2bbda36300
3 changed files with 100 additions and 77 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue