Compare commits
6 Commits
fresh-main
...
main
Author | SHA1 | Date |
---|---|---|
|
00a034b373 | |
|
05f7cd9a91 | |
|
dfa658cc49 | |
|
532c5d0cfa | |
|
6a1f0df2f9 | |
|
90534ce160 |
|
@ -19,20 +19,19 @@ export async function onRequestPost(context) {
|
|||
Authorization: "Bearer " + context.env.MAILERSEND_API_KEY,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
from: {
|
||||
email: "contact@laforceit.com",
|
||||
name: "Daniel LaForce"
|
||||
body: JSON.stringify({ from: {
|
||||
email: email,
|
||||
name: name
|
||||
},
|
||||
to: [
|
||||
{
|
||||
email: "daniel.laforce@laforceit.com",
|
||||
email: "daniel@laforceit.com",
|
||||
name: "Daniel LaForce"
|
||||
}
|
||||
],
|
||||
subject: `[LaForceIT] ${subject}`,
|
||||
subject: `ArgoBox Contact Form: ${subject}`,
|
||||
html: `
|
||||
<h2>New Contact Message</h2>
|
||||
<h2>New Contact Message on LaForceIT.com</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