Basically "cloudflare-internal:email" does not work on miniflare (yet)
Basically "cloudflare-internal:email" does not work on miniflare (yet)


itty-router to define your endpointscontext.waitUntil()myMainEmail@gmail.com but doesnt post the request to the host, but when I trigger email with that test tool, it send the post request. Im new to workers so I dont really knowaddEventListenerexport default


npx wrangler dev --remotecontext.waitUntil()myMainEmail@gmail.comaddEventListenerexport defaultexport default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
const path = new URL(request.url).pathname
if (path == '/send-email') {
// your email code...
}await fetch("http://example.host.site", {
method: "POST",
headers: {
"Content-Type": "application/json;charset=UTF-8",
},
body: JSON.stringify(data),
});
await message.forward("myMainEmail@gmail.com");