๐ง Mail Service & Licensing Notes
Last updated๏ผ2026-11-25
๐ License and Email Services
Read the Scope First
This chapter describes the licensing model of the standalone delivery edition CMS (self-hosted on a single machine, with the program managing its own license code).
In the SaaS platform (platform/), tenant sites have no “License Management / Activate License Code” step:
the platform has switched to a subscription model โ subscription status is written by the platform into the tenant database’s subscriptions table and read by the engine in real time;
on expiry only the admin panel is locked (the front end works as usual), and renewal restores it automatically. So SaaS tenants see no license code entry in their admin;
the “four license editions / license code activation” below apply only to the standalone delivery edition.
The only practical impact for template developers: whether multilingual tags output is determined by “whether the current site has multilingual capability” โ
under SaaS it is judged by the platform per plan/subscription, and in the standalone edition by the license code.
This chapter covers the four license editions, license code activation, expiry policy, and SMTP email features. Template developers, pay special attention to: multilingual tags ({{.LangSwitcher}}, {{.HrefLangs}}) output only with a Professional or above license.
๐ฆ Four License Editions
The program binaries of all four editions are completely identical; the differences are determined by the license code:
| Edition | Annual Fee | Bound Domains | Multilingual | Use Case |
|---|---|---|---|---|
| Basic | ยฅ199 | 1 | โ | Single-language corporate / personal site |
| Professional | ยฅ699 | 1 | โ | Foreign-trade multilingual site (recommended) |
| Enterprise | ยฅ2,999 | 2 | โ | Dual domains, priority technical support |
| Site Group | ยฅ89,999 | Main domain + unlimited subdomains | โ | Batch site-group deployment |
๐ก Static site export is available in all four editions; the number of domains is filled in when the license code is issued, not decided by the program.
๐ License Code Activation
Admin path: Admin โ License Management. Paste the license code and click activate; the license record is written to the licenses table (product is the product code; one code per domain per email).
The license code uses Ed25519 asymmetric signing: only the public key is embedded in the program, so customers cannot forge codes; only the issuer holding the private key can generate valid license codes.
โฐ Expiry Policy: Gentle Reminders, No Admin Lockout
After the service expires, the admin is not locked: all front-end and admin features remain usable; only a reminder shows in the “System Info” card on the admin home page. - โค 30 days before expiry: blue notice “Service expiring soon”, suggesting early renewal - Expired: orange notice “Service expired”, clearly stating features are unaffected - Already-purchased capabilities such as multilingual are not revoked on expiry, avoiding paralysing customer-built sites
Impact on template development: whether multilingual tags output depends on “whether Professional / Enterprise edition was ever purchased” (LicenseOwned), regardless of service validity. In other words, after buying Professional, a customer’s multilingual sites keep working even without renewal.
๐ง SMTP Email Services
Admin path: Admin โ Email Settings. After configuring SMTP, two features are enabled:
| Feature | Trigger | Token Validity |
|---|---|---|
| Forgot password | Login page “Forgot password?” โ enter username or email โ reset via email link | 30 minutes ยท one-time |
| New user email verification | Automatically sent when creating an administrator in the admin | 24 hours ยท one-time |
Supports SSL(465) / STARTTLS(587) / no encryption(25); configuration is stored in the settings table (key prefix smtp_).
Security design: the password is stored obfuscated in the database and never echoed in plaintext on the page (leave blank to keep unchanged); when the account doesn’t exist, the response is identical to the success message (prevents account enumeration); the same account can request a reset only once per 60 seconds.
๐ Delivery Package Structure (Standalone Delivery Edition)
Delivery packages are organized per edition: 01-ๅบ็ก็ / 02-ไธไธ็ / 03-ไผไธ็ / 04-็ซ็พค็. Each directory contains:
- cms-windows.exe, cms-linux: the programs for the corresponding platforms (already UPX-compressed)
- templates/, static/: templates and static assets
- cms.db: initial database (with the complete table structure and default administrator pre-built; the program does not auto-create core tables)
- .env, start.bat, deploy.sh, ไฝฟ็จ่ฏดๆ.txt (usage instructions)
When replacing cms.db during development, be sure to also delete cms.db-wal and cms.db-shm, otherwise SQLite will read stale state (symptom: “tables all present but reports no such table”).
SaaS mode does not use this delivery package: tenant sites are provisioned by the platform, with database file names randomly generated and located by directory on the platform side; there is no “copying
cms.dbaround” step.
CloudSite SaaS