Compare commits
No commits in common. "main" and "fresh-main" have entirely different histories.
main
...
fresh-main
|
@ -19,19 +19,20 @@ export async function onRequestPost(context) {
|
|||
Authorization: "Bearer " + context.env.MAILERSEND_API_KEY,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({ from: {
|
||||
email: email,
|
||||
name: name
|
||||
body: JSON.stringify({
|
||||
from: {
|
||||
email: "contact@laforceit.com",
|
||||
name: "Daniel LaForce"
|
||||
},
|
||||
to: [
|
||||
{
|
||||
email: "daniel@laforceit.com",
|
||||
email: "daniel.laforce@laforceit.com",
|
||||
name: "Daniel LaForce"
|
||||
}
|
||||
],
|
||||
subject: `ArgoBox Contact Form: ${subject}`,
|
||||
subject: `[LaForceIT] ${subject}`,
|
||||
html: `
|
||||
<h2>New Contact Message on LaForceIT.com</h2>
|
||||
<h2>New Contact Message</h2>
|
||||
<p><strong>Name:</strong> ${name}</p>
|
||||
<p><strong>Email:</strong> ${email}</p>
|
||||
<p><strong>Message:</strong><br>${message.replace(/\n/g, "<br>")}</p>
|
||||
|
|
Loading…
Reference in New Issue