From dbc9187b90fded847c620501c9d955af38d42bea Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Thu, 6 Jan 2022 09:13:46 +0100 Subject: [PATCH] add mailing system --- pages/api/contactForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/api/contactForm.js b/pages/api/contactForm.js index e13217a..f49fe6b 100644 --- a/pages/api/contactForm.js +++ b/pages/api/contactForm.js @@ -52,10 +52,10 @@ export default async function handler(req, res) { // send mail with defined transport object let info = await transporter.sendMail({ from: email, // sender address - to: "benoti.san@gmail.com", // list of receivers - subject: "Tben Client Request", // Subject line + to: "benoti.san@gmail.com, benoti.sanchez@gmail.com", // list of receivers + subject: "Tben.me | Client Message", // Subject line text: "Hello from tben", - html: `

Message from ${name}

${message}

`, // html body + html: `

Message from ${name}

Name: ${name}

Email: ${email}

Message:

${message}

`, // html body }); console.log("Message sent: %s", info.messageId);