From 32c7ee5a0bd10fa8e24a0989146e95ddbf158b81 Mon Sep 17 00:00:00 2001 From: Tben Date: Sat, 5 Aug 2023 09:54:00 +0100 Subject: [PATCH] updates --- pages/api/contactForm.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/api/contactForm.ts b/pages/api/contactForm.ts index 92cd080..500cb17 100644 --- a/pages/api/contactForm.ts +++ b/pages/api/contactForm.ts @@ -9,11 +9,11 @@ import sanitizeHtmlOptions from "../../functions/backend/sanitizeHtmlOptions"; import { NextApiRequest, NextApiResponse } from "next"; let transporter = nodemailer.createTransport({ - host: process.env.OUTLOOK_HOST, + host: process.env.TBENMAIL_HOST, port: 587, auth: { - user: process.env.OUTLOOK_EMAIL, - pass: process.env.OUTLOOK_EMAIL_PASSWORD, + user: process.env.TBENMAIL_EMAIL, + pass: process.env.TBENMAIL_EMAIL_PASSWORD, }, }); @@ -32,7 +32,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) try { let info = await transporter.sendMail({ - from: process.env.OUTLOOK_EMAIL, + from: `Tben.me <${process.env.TBENMAIL_EMAIL}>`, to: "benoti.san@gmail.com, benoti.sanchez@gmail.com", subject: "Tben.me | Client Message", text: "Hello from tben",