Email Routing API (Email Verification)

Hi there, I am a Devolper and I am integerating Cloudflare Email Routing API into my App by this : async function createCloudflareRoutingRule() { const url = https://api.cloudflare.com/client/v4/zones/${accountId}/email/routing/rules; const headers = { Authorization: Bearer ${apiToken}, 'Content-Type': 'application/json' }; const data = { enabled: true, name: "TestRule", actions: [ { type: "forward", value: [ "muhammadtalha4163@gmail.com", ] } ], matchers: [ { "type": "literal", "field": "to", "value": "muhammadtalha@texagon.io" } ] } try { const response = await axios.post(url, data, { headers: headers }); return response.data; } catch (error) { console.error('Error creating Cloudflare routing rule:', error.message); console.log(error.response.data); console.log(error.response.status); console.log(error.response.headers); return null; } } Now i am facing the Problem the forwarding Email Address does not receive any kind of confirmation Email. #EmailRouting
3 Replies
Chaika
Chaika6mo ago
If you go into the dashboard, for Email -> Email Routing -> Routing Rules, is the status Destination Address not found? You need to add the dest. address first and verify it seperately
Muhammad Talha
Muhammad Talha6mo ago
Hi There Thank you Very Much for help. I was inspecting the Cloud flare Email Routing Services + API Services for 2 days But Got Exhausted.
Want results from more Discord servers?
Add your server
More Posts
Serving TB of data from Google Cloud Storage (GCS)Hello all, We are serving TB of data per day from GCS (ML checkpoints, 2 GB to 10 GB per file). EgCan't access worker "route" from inside SvelteKit worker functionI have a worker that uploads images to R2, and I call it via a fetch via an API route in my SvelteKiHow to set KV environment variables in the dashboard?I'm trying to use a Cloudflare Pages worker which I have stored in the functions folder of my Pages Using cache put and match in the same workerHello, As the title says, I want to cache something and verify it's there. This works just fine in Token Permission for Variants APIHello! Does anybody happen to know the permission needed for a token to use the /v4/zones/:zone_id/Any way to abort a chunked HTTP response such that the receiving end knows an error occurred?Hi all! When streaming an unknown-length response to the client, calling `WritableStream.abort()` wiHow do I define the KV_NAMESPACE?I cannot get my KV_NAMESPACE to work in the worker. I'm following the. tutorial but keep getting er[SaaS] Get proxied request size in bytesHello! I intent to use Cloudflare workers as some kind of a proxy backend in my proxy SaaS, i.e. serCookie not set even though Set-Cookie header is presentHello folks I have a server containerized and hosted on GCP I have a A record at cloudflare that poiFirebase for NextJS: "invalid key" when deploying on pagesWhen using pages to deploy my next.js project, it says that the firebase keys are invalid. I have ma