From 96ffec08bfa5cb73e344b7cabb5d95907939ecb2 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 7 Jan 2024 01:42:35 -0700 Subject: [PATCH] fix up message content --- src/routes/contact/submit.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/routes/contact/submit.js b/src/routes/contact/submit.js index 9fa00ab..0befd0e 100644 --- a/src/routes/contact/submit.js +++ b/src/routes/contact/submit.js @@ -69,18 +69,16 @@ export async function post({ request }) { }; } - const text = `

new MMT message

+ const text = `

New MMT Message

Name: ${body.name}

Phone Number: ${body.phone || 'Not Given'}

Email: ${body.email}



-

${body.message}

-
-

brought to you by simponic

`; +

${body.message}

`; const messageSent = await mailer - .sendMail(FORM_TO_EMAIL, `New Message From ${body.name}`, text) + .sendMail(FORM_TO_EMAIL, `[MMT-FORM]: New Message From ${body.name}`, text) .then(() => true) .catch((error) => { console.error(error);