Kaynağa Gözat

docs: 更新开启邮件推送的关键配置说明

sansan 5 ay önce
ebeveyn
işleme
73364a3af0
3 değiştirilmiş dosya ile 20 ekleme ve 2 silme
  1. 9 0
      README-EN.md
  2. 10 1
      README.md
  3. 1 1
      config/config.yaml

+ 9 - 0
README-EN.md

@@ -1181,6 +1181,15 @@ For long-term stable operation, we recommend [Docker Deployment](#6-docker-deplo
    - Note: To prevent email bulk sending abuse, current bulk sending allows all recipients to see each other's email addresses.
    - If you haven't configured email sending before, not recommended to try
 
+   > ⚠️ **Important Configuration Dependency**: Email push requires HTML report file. Make sure `formats.html` is set to `true` in `config/config.yaml`:
+   > ```yaml
+   > formats:
+   >   sqlite: true
+   >   txt: false
+   >   html: true   # Must be enabled, otherwise email push will fail
+   > ```
+   > If set to `false`, email push will report error: `Error: HTML file does not exist or not provided: None`
+
    <br>
 
    **GitHub Secret Configuration (⚠️ Name must match exactly):**

+ 10 - 1
README.md

@@ -1235,7 +1235,16 @@ GitHub Actions 环境下,数据存储在 **远程云存储**(支持 S3 兼
    <br>
 
    - 注意事项:为防止邮件群发功能被**滥用**,当前的群发是所有收件人都能看到彼此的邮箱地址。
-   - 如果你没有过配置下面这种邮箱发送的经历,不建议尝试 
+   - 如果你没有过配置下面这种邮箱发送的经历,不建议尝试
+
+   > ⚠️ **重要配置依赖**:邮件推送需要 HTML 报告文件。请确保 `config/config.yaml` 中的 `formats.html` 设置为 `true`:
+   > ```yaml
+   > formats:
+   >   sqlite: true
+   >   txt: false
+   >   html: true   # 必须启用,否则邮件推送会失败
+   > ```
+   > 如果设置为 `false`,邮件推送时会报错:`错误:HTML文件不存在或未提供: None`
 
    <br>
 

+ 1 - 1
config/config.yaml

@@ -21,7 +21,7 @@ storage:
   formats:
     sqlite: true       # 主存储(必须启用)
     txt: false         # 是否生成 TXT 快照
-    html: false        # 是否生成 HTML 报告
+    html: false        # 是否生成 HTML 报告(⚠️ 邮件推送必须设为 true,否则会报错)
 
   # 本地存储配置
   local: