Email Worker Upstream error,

Hi, I created a simple email routing worker:
export default {
async email(message, env, ctx) {
await message.forward([“[email protected]”, “[email protected]”]);
}
}

When I send email to this worker I obtain:
Remote Server returned '521 5.3.0 Upstream error, please check Postmaster · Cloudflare Email Routing docs for possible reasons why.

What’s wrong?

Thx

Luca

I receive the same. The input for the forward method only accepts a string—for a single email address!

I have to admit my disappointment. I expected a way to forward to multiple verified addresses with a worker.

Message.forward does not accept an array of email addresses, but you can simply call it twice.
await message.forward(“[email protected]”);
await message.forward(“[email protected]”);
Works fine in my testing

Thx, I did the same and it works too.
Very sad, but working.

Thx

Luca