diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-07 01:42:35 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-07 01:42:35 -0700 |
| commit | 96ffec08bfa5cb73e344b7cabb5d95907939ecb2 (patch) | |
| tree | 9d2ce0bf6bff4d10149de31704173728492903f0 | |
| parent | b09e1e603287c5a29e336c0d4f2df8f28ef769a2 (diff) | |
| download | mistymountainstherapy-96ffec08bfa5cb73e344b7cabb5d95907939ecb2.tar.gz mistymountainstherapy-96ffec08bfa5cb73e344b7cabb5d95907939ecb2.zip | |
fix up message content
| -rw-r--r-- | src/routes/contact/submit.js | 8 |
1 files 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 = `<h1>new MMT message</h1> + const text = `<p>New MMT Message</h1> <p>Name: ${body.name}</p> <p>Phone Number: ${body.phone || 'Not Given'}</p> <p>Email: ${body.email}</p> <hr> <br> -<p>${body.message}</p> -<br> -<p>brought to you by <a href="https://github.com/Simponic/mistymountains">simponic</a></p>`; +<p>${body.message}</p>`; 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); |
