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);