自动将生成的RSS EPUB文件发送到你的Kindle设备。
复制示例配置文件并编辑:
cp email_config_example.yaml email_config.yaml编辑 email_config.yaml 填写:
- SMTP服务器信息
- 发件人邮箱和密码
- Kindle接收邮箱
- 登录亚马逊账户
- 进入"管理我的内容和设备"
- 选择"首选项" → "个人文档设置"
- 记下你的Kindle邮箱地址(如
yourname_123@kindle.com) - 重要:将发件人邮箱添加到"已认可的发件人电子邮箱列表"
python send_to_kindle.pypython rss_and_send.pypython rss_and_send.py --no-sendpython send_to_kindle.py -f specific_file.epubsmtp_server: smtp.gmail.com
smtp_port: 587注意:需要开启两步验证并生成应用专用密码
smtp_server: smtp.qq.com
smtp_port: 587注意:使用授权码,不是QQ密码
smtp_server: smtp.163.com
smtp_port: 465注意:使用授权码
smtp_server: smtp-mail.outlook.com
smtp_port: 587使用 crontab 设置定时任务:
# 编辑定时任务
crontab -e
# 添加任务(每天早上7点推送)
0 7 * * * cd /Users/haleyc/vscode/RSS && python3 rss_and_send.py >> cron_log.txt 2>&1更多定时任务示例见 cron_setup.sh
- 文件大小限制:Kindle邮件附件限制为25MB
- 格式支持:确保发送EPUB格式(Kindle支持)
- 邮箱白名单:必须将发件邮箱添加到Kindle的认可发件人列表
- 网络要求:需要稳定的网络连接发送邮件
- 检查网络连接
- 验证SMTP设置是否正确
- 确认邮箱密码/授权码是否正确
- 检查是否需要应用专用密码
- 确认Kindle邮箱地址正确
- 检查是否添加了发件人白名单
- 查看垃圾邮件文件夹
- 确认文件大小未超过25MB
- 使用
crontab -l确认任务已添加 - 检查Python路径是否正确
- 查看
cron_log.txt日志文件