📮 Connecting mailboxes and configuring mail

OKNote includes a full email client: a unified multi-account inbox, composing and replying, AI summary, AI draft reply, and mail-to-note. Message bodies are stored on your own server, so you can read them even when offline.
The mail folder has four guides: mailbox setup → everyday mail → AI assistance and note archiving → troubleshooting. This article covers provider app passwords, connecting accounts and SMTP configuration.
Connect your first mailbox
Click ✉️ Mail (⌘⇧2) in the module rail. The first time in, you'll see a welcome page — click "Add your first mailbox". To add more accounts later, click the + next to My mailboxes in the mail sidebar.
The wizard has just two steps:
- Step 1 — Mailbox: type your email address (or use the Gmail / QQ Mail / 163 / Outlook / iCloud quick buttons) and click Next. OKNote auto-detects the server settings — for common providers you never touch a server address.
- Step 2 — Configure: enter your "Password / app password", click "Test connection", and once it passes, click "Add".
⚠️ The one pitfall everyone hits: Gmail, QQ, 163, and most major providers will not accept your regular login password — you need an "app password" (a credential issued specifically for third-party mail clients). Here's how to get one, provider by provider.
QQ Mail

- Open mail.qq.com in a desktop browser and sign in.
- Click "Settings" → "Account" at the top (in the newer UI it's under "Account & Security").
- Scroll down to the "POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV" section.
- Enable "IMAP/SMTP" and complete the SMS verification from your linked phone as prompted.
- Once verified, the page shows a 16-character authorization code — copy it immediately (it's shown in full only this once).
- Back in OKNote, paste it into "Password / app password".
Tip: changing your QQ password invalidates the code — just generate a new one.
Tencent Exmail

- Open exmail.qq.com in a desktop browser and sign in to your business mailbox.
- Click "Settings" → "Client settings" at the top right.
- Make sure the IMAP/SMTP service is enabled.
- If your organization enforces secure login, generate a "client-specific password" on the same page (this usually requires verifying your identity with a WeChat scan) — that password is your app password.
- Paste it into OKNote's "Password / app password".
If you can't find the client-specific password option, your admin hasn't enabled it. Ask your Exmail administrator to allow client logins in the admin console's security settings.
Gmail

There are two ways to connect Gmail:
Option 1: OAuth (recommended when available) If a "Gmail OAuth" button appears at the top of the add-account dialog, just click it and complete the sign-in on the Google page that pops up — no password needed, and it's the most secure option.
Option 2: App password
- Your Google account must have 2-Step Verification turned on: go to myaccount.google.com → "Security" → enable "2-Step Verification".
- Visit myaccount.google.com/apppasswords.
- Enter a name (e.g. OKNote) and click "Create".
- Google generates a 16-character app password (like
xxxx xxxx xxxx xxxx) — copy it. - Paste it into OKNote's "Password / app password" field (with or without the spaces, both work).
Note: connecting Gmail requires that your server's network can reach Google services.
163 Mail

- Open mail.163.com, sign in, and click "Settings" → "POP3/SMTP/IMAP" at the top.
- Enable "IMAP/SMTP" and complete the SMS or QR-code verification as prompted.
- Copy the generated authorization code into OKNote.
Other providers

Outlook, iCloud, Alibaba Cloud Mail, Sina, Sohu, China Mobile 139, China Telecom 189, and other mainstream providers are all auto-detected. For niche providers, expand "Advanced options" in step 2 and fill in the IMAP host, port (usually 993), and SSL switch yourself. Advanced options also let you adjust:
- Email history range: how far back the first sync fetches — 90 days by default, from 30 days up to full history.
- Auto-sync interval: new mail is fetched every 2 minutes by default; set it to 0 for manual sync only.
Sending (SMTP)

When you add an account, OKNote auto-detects and saves the sending settings — usually you don't have to do anything. If sending fails later, go to Settings (⌘,) → Mail → Account sync → select the account → "Sending (SMTP)", click "Auto-detect SMTP" or fill it in manually, then click "Test" to verify.