Muhammad Talha
Muhammad Talha
CDCloudflare Developers
Created by Muhammad Talha on 12/13/2023 in #general-help
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: [ "[email protected]", ] } ], matchers: [ { "type": "literal", "field": "to", "value": "[email protected]" } ] } 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
5 replies