TTF Mail
Organization webmail and Expo mobile app — custom domain onboarding with 1-click Cloudflare OAuth DNS setup, Resend inbound webhooks, send identities, rich-text compose, and push alerts.
Overview
TTF Mail (mail/ web app + mail-mobile/ Expo React Native app + /api/mail) delivers branded organization email (name@company.com) integrated with Sign in with TTF and automated domain DNS provisioning.
1. Webmail & Companion Mobile App (mail-mobile)
- Full Mailbox Folders:
Inbox,Sent,Drafts,Starred, andTrashwith batch operations (POST /api/mail/messages/batch), search, and unread/folder stats (/api/mail/stats). - Rich-Text Compose & Attachments: Rich HTML editor (
richText.ts), attachment uploads and downloads (/messages/:id/attachments/:attachmentId), and sanitized HTML email rendering (SafeHtmlEmail). - Send Identities & Aliases: Switch between assigned organizational addresses and company sub-email aliases (
AliasBadge,/api/mail/send-identities). - Native Mobile (
mail-mobile): Tabbed mobile inbox/sent/drafts/starred/trash, compose screen, and Expo push notifications (pushNotifications.ts).
2. Custom Domain & 1-Click Cloudflare DNS Automation
Organizations can connect their own domain in SettingsPage (/api/mail/domain/*):
- Cloudflare OAuth Integration: Connect Cloudflare (
/domain/cloudflare/auth-url), list zones, and automatically apply outbound DKIM/SPF DNS records (/domain/apply-dns) and inbound MX records (/domain/apply-inbound-dns). - Domain Verification & Activation: Verify DNS propagation (
/domain/verify) and toggle custom domain mail live (/domain/activate//deactivate).
3. Inbound Email Webhook (POST /api/mail/inbound)
- Signature-verified Resend inbound webhook (
verifyResendWebhook) parses raw MIME/webhook payloads and routes incoming emails straight into employee inboxes and aliases.
See the Mail & Messenger API Reference.
Last updated on
