CreatorBoiX
CDCloudflare Developers
•Created by CreatorBoiX on 9/11/2023 in #workers-help
How do i do this?
So for a special purpose i am trying to forward all emails to 5 seperate emails, how do i do this?
email workers btw
this is my current code and it obviously doesnt work
export default {
async email(message, env, ctx) {
const allowList = [""];
if (allowList.indexOf(message.headers.get("from")) == -1) {
await message.forward("[email protected]");
await message.forward("[email protected]");
await message.forward("[email protected]");
await message.forward("[email protected]");
await message.forward("[email protected]");
} else {
}
}
}
10 replies