yeah tried all that maybe my limited

yeah, tried all that, maybe my limited knowledge in TS I can't accomplish it Sadge
1 Reply
JustinNoel
JustinNoel3y ago
That sample just had one tiny bit of TypeScript. It was the : PagesFunction. I've removed it in this sample:
import mailChannelsPlugin from "@cloudflare/pages-plugin-mailchannels";
export const onRequest = mailChannelsPlugin({
personalizations: [
{
to: [
{
name: "ACME Support",
}
]
}
],
from: {
name: "ACME Support",
},
respondWith: () => {
return new Response(`Thank you for submitting your enquiry. A member of the team will be in touch shortly.`);
}
});
import mailChannelsPlugin from "@cloudflare/pages-plugin-mailchannels";
export const onRequest = mailChannelsPlugin({
personalizations: [
{
to: [
{
name: "ACME Support",
}
]
}
],
from: {
name: "ACME Support",
},
respondWith: () => {
return new Response(`Thank you for submitting your enquiry. A member of the team will be in touch shortly.`);
}
});
Want results from more Discord servers?
Add your server