Files
goodBaby/docs/email-config.md
T
meiandClaude Fable 5 79774070fc feat: 完善后端并新增 Vue3 WebUI
后端:
- 修复登录校验、DB 并发(单例+WAL+纯Go sqlite)、会话密钥持久化等核心缺陷
- 新增 Timer CRUD/签到/手动触发、执行日志、仪表盘、驱动元数据等 API
- 统一驱动接口: 带 context 的执行器、真实错误返回、敏感字段掩码、连通性测试
- 补全钉钉执行器; Timer 触发/提醒去重; 配置支持默认值与环境变量覆盖

前端:
- Vite+Vue3+TS+Pinia+Element Plus, 由驱动元数据动态渲染配置表单
- 登录/仪表盘(倒计时环)/定时器/规则/账号/日志/设置页面, 支持暗色模式
- 主题色 #66ccff, 信号波纹 logo, go:embed 单二进制部署

构建: Dockerfile 增加前端构建阶段; 补充各驱动配置文档

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 22:19:41 +08:00

40 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Email 配置
账号类型: `email`,规则类型: `email`。
## 账号配置 (Account Config)
```json
{
"smtp_server": "smtp.example.com",
"port": 465,
"security": "ssl",
"username": "you@example.com",
"password": "你的密码或授权码",
"from": "you@example.com",
"test_destination": "test@example.com"
}
```
| 字段 | 必填 | 说明 |
| --- | --- | --- |
| `smtp_server` | 是 | SMTP 服务器地址 |
| `port` | 是 | 端口,SSL 一般为 465,STARTTLS 一般为 587 |
| `security` | 否 | `ssl` / `starttls` / `none`,默认 `ssl` |
| `username` | 是 | 登录用户名,通常是邮箱地址 |
| `password` | 是 | 密码或授权码(QQ 邮箱、163 等需要使用授权码) |
| `from` | 否 | 发件人地址,默认使用 `username` |
| `test_destination` | 否 | 填写后,点击“测试”会真的发送一封测试邮件到该地址 |
## 规则配置 (Rule Config)
```json
{
"title": "邮件标题",
"msg": "邮件正文",
"destinations": ["a@example.com", "b@example.com"]
}
```
每个收件人独立发送、独立重试,互不影响。