Created
March 18, 2025 07:17
-
-
Save parasquid/2fbb0755451c5215a98001f4c73d8f8d to your computer and use it in GitHub Desktop.
CloudFlare worker to forward email to multiple recipients
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async email(message, env, ctx) { | |
const forwardList = [ | |
"[email protected]", | |
"[email protected]", | |
"[email protected]", | |
]; | |
for(const email of forwardList){ | |
await message.forward(email); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment