Compare commits

..

No commits in common. "main" and "fresh-main" have entirely different histories.

1 changed files with 7 additions and 6 deletions

View File

@ -19,19 +19,20 @@ export async function onRequestPost(context) {
Authorization: "Bearer " + context.env.MAILERSEND_API_KEY, Authorization: "Bearer " + context.env.MAILERSEND_API_KEY,
"Content-Type": "application/json" "Content-Type": "application/json"
}, },
body: JSON.stringify({ from: { body: JSON.stringify({
email: email, from: {
name: name email: "contact@laforceit.com",
name: "Daniel LaForce"
}, },
to: [ to: [
{ {
email: "daniel@laforceit.com", email: "daniel.laforce@laforceit.com",
name: "Daniel LaForce" name: "Daniel LaForce"
} }
], ],
subject: `ArgoBox Contact Form: ${subject}`, subject: `[LaForceIT] ${subject}`,
html: ` html: `
<h2>New Contact Message on LaForceIT.com</h2> <h2>New Contact Message</h2>
<p><strong>Name:</strong> ${name}</p> <p><strong>Name:</strong> ${name}</p>
<p><strong>Email:</strong> ${email}</p> <p><strong>Email:</strong> ${email}</p>
<p><strong>Message:</strong><br>${message.replace(/\n/g, "<br>")}</p> <p><strong>Message:</strong><br>${message.replace(/\n/g, "<br>")}</p>