邮件办公自动化工具,批量发送、模板管理、定时任务一站搞定。
python3 scripts/email_ops.py setup-smtp --host smtp.qq.com --port 465 --user your@qq.com --password xxxxxxxx
python3 scripts/email_ops.py send-batch --template template.html --recipients list.csv -o log.json
python3 scripts/email_ops.py send --to recipient@example.com --subject "测试邮件" --body "你好!"
python3 scripts/email_ops.py inbox --limit 10 --unread-only
python3 scripts/email_ops.py test-connection
模板使用Jinja2语法:
尊敬的{{姓名}}:
您的订单{{订单号}}已发货,预计{{预计到达}}送达。
{% if VIP %}
尊享VIP优先配送服务!
{% endif %}
详见 references/template-guide.md
CSV文件需包含 email 列:
email,姓名,订单号,预计到达,VIP
user1@qq.com,张三,ORD001,3天,true
user2@163.com,李四,ORD002,5天,false
pip install jinja2
~/.email_automation/smtp_config.json共 1 个版本