mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
Subdomains do not inherit Email Routing from the apex domain; each subdomain must enable Email Routing and configure its own DNS records and Catch-all rule. Refs #969 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
6.3 KiB
6.3 KiB
FAQ
[!NOTE] Note If you don't find a solution here, please search or ask in
Github Issues, or ask in the Telegram group.
General
| Issue | Solution |
|---|---|
| Sending emails to authenticated forwarding addresses using Cloudflare Workers | Use CF's API for sending, only supports recipient addresses bound to CF, i.e., CF EMAIL forwarding destination addresses |
| Binding multiple domains | Each domain needs to configure email forwarding to worker |
| Subdomain cannot receive email | Subdomains must have Email Routing enabled separately on Cloudflare with their own DNS records and Catch-all rule. Enabling it only on the apex domain does NOT cover subdomains. See Email Routing |
Worker Related
| Issue | Solution |
|---|---|
Uncaught Error: No such module "path". imported from "worker.js" |
Reference |
No such module "node:stream". imported from "worker.js" |
Reference |
Subdomain cannot send emails |
Reference |
Failed to send verify code: No balance |
Set unlimited emails in admin console or increase quota on the sending permission page |
Github OAuth unable to get email 400 Failed to get user email |
GitHub user needs to set email to public |
Cannot read properties of undefined (reading 'map') during page initialization |
First check whether /open_api/settings is returning valid data. In a direct Worker deployment, this usually means Worker variables were not configured correctly, so verify JSON-format variables such as DOMAINS and ADMIN_PASSWORDS. If this happens in a Pages deployment because requests are going to the wrong backend address, continue with the Pages troubleshooting section below |
Pages Related
| Issue | Solution |
|---|---|
network error |
Use incognito mode or clear browser cache and DNS cache |
Pages deployment shows the map error, or API requests such as /admin/users / /admin/new_address return 405 Method Not Allowed |
This is usually caused by an incorrect frontend backend address. Check VITE_API_BASE, the URL entered when generating the zip in the UI guide, or FRONTEND_ENV: for separate frontend/backend deployment talking directly to Worker, it should be the backend Worker API root URL, start with https://, and have no trailing /; if you use PAGE_TOML to proxy backend requests through Page Functions, VITE_API_BASE can be left empty to use same-origin requests. See Pages Frontend Deployment |
Refreshing page or directly visiting /admin, /user returns 404 |
This project is a Single-Page Application (SPA). When deploying Pages via UI, set "Not Found handling" to Single-page application (SPA) in the advanced options. See Pages Frontend Deployment |
Email Sending Related
| Issue | Solution |
|---|---|
Set DEFAULT_SEND_BALANCE but still getting No balance |
DEFAULT_SEND_BALANCE is the default quota when users request sending permission. Users must first click "Request Send Permission" in the frontend. Alternatively, add the address to the "No Limit Send Address List" in the admin console, or configure NO_LIMIT_SEND_ROLE |
Error: Please enable resend or smtp for this domain |
You need to configure RESEND_TOKEN or SMTP_CONFIG first. See Configure Email Sending |
SMTP_CONFIG configured but sending fails |
Make sure the JSON key is your own sending domain (e.g. your-domain.com), not the example awsl.uk. See Configure Email Sending |
Mail Client Related
| Issue | Solution |
|---|---|
Set ENABLE_ADDRESS_PASSWORD but Foxmail/Outlook cannot login |
ENABLE_ADDRESS_PASSWORD only enables the "address password login" web API. It does NOT provide standard IMAP/SMTP service. To use mail clients, you need to deploy the SMTP/IMAP Proxy Service |
Telegram Bot
| Issue | Solution |
|---|---|
Telgram Bot failed to get email: 400: Bad Request:BUTTON_URL_INVALID |
tg mini app URL is incorrect, should be the pages URL |
Telegram bot bind error: bind adress count reach the limit |
Need to set worker variable TG_MAX_ADDRESS |
Github Actions
| Issue | Solution |
|---|---|
| After Github Action deployment, CF always shows preview branch | Go to CF pages settings to confirm that the frontend branch matches the Github Action frontend deployment branch |