Email Workers Playground error and dropped emails

When deploying to Email Workers with the wrangler CLI i get this error when simulating an email with the Email Trigger Simulator. There is just an message in the console with "Email Trigger not available to this worker" as seen in the Picture.

Also now when I send an email to the worker it get's dropped. I'm, using the message.reply() function so according to the documentation it should reply (which it does not) OR fail with an error thrown (which it also does not). Does anyone have experience with that?

My code:

import { EmailMessage } from "cloudflare:email";
import { createMimeMessage } from "mimetext";

export default {
    async email(message, env, ctx) {
        const msg = createMimeMessage();
        msg.setHeader("In-Reply-To", message.headers.get("Message-ID"));
        msg.setSender({ name: "noreply", addr: "noreply@xxx.ch" });
        msg.setRecipient(message.from);
        msg.setSubject("Email Routing Auto-reply");
        msg.addMessage({
            contentType: "text/plain",
            data: `Hello
      This is an automated reply to your email.`,
        });

        await fetch("https://discord.com/api/webhooks/xxx", {
            method: "post",
            headers: {
                "Content-Type": "application/json",
            },
            body: JSON.stringify({
                username: "webhook",
                content: `${msg.asRaw()}`,
            }),
        });

        var replyMessage = new EmailMessage(
            "noreply@xxx.ch",
            message.from,
            msg.asRaw()
        );

        message.reply(replyMessage);
    },
};
image.png
Was this page helpful?